package com.sophialex.health.record.ui.baseinfo;

import java.util.List;

import org.eclipse.jface.action.IMenuManager;
import org.eclipse.jface.action.IToolBarManager;
import org.eclipse.swt.SWT;
import org.eclipse.swt.custom.CTabFolder;
import org.eclipse.swt.custom.CTabItem;
import org.eclipse.swt.custom.ScrolledComposite;
import org.eclipse.swt.events.KeyEvent;
import org.eclipse.swt.events.KeyListener;
import org.eclipse.swt.events.ModifyEvent;
import org.eclipse.swt.events.ModifyListener;
import org.eclipse.swt.events.SelectionAdapter;
import org.eclipse.swt.events.SelectionEvent;
import org.eclipse.swt.layout.FillLayout;
import org.eclipse.swt.layout.FormAttachment;
import org.eclipse.swt.layout.FormData;
import org.eclipse.swt.layout.FormLayout;
import org.eclipse.swt.widgets.Button;
import org.eclipse.swt.widgets.Combo;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.swt.widgets.Control;
import org.eclipse.swt.widgets.DateTime;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Label;
import org.eclipse.swt.widgets.Text;
import org.eclipse.swt.widgets.ToolBar;
import org.eclipse.swt.widgets.ToolItem;
import org.eclipse.ui.forms.widgets.FormToolkit;
import org.eclipse.ui.forms.widgets.ScrolledForm;
import org.eclipse.ui.forms.widgets.Section;
import org.eclipse.ui.forms.widgets.TableWrapData;
import org.eclipse.ui.forms.widgets.TableWrapLayout;
import org.eclipse.ui.part.ViewPart;

import com.sophia.common.xmlbean.pojo.PersonHistoryXMLPojo;
import com.sophialex.health.common.platform.pojo.Geography;
import com.sophialex.health.person.vo.HrPerson;
import com.sophialex.health.record.Messages;
import com.sophialex.health.record.common.GeographyTreeCombo;
import com.sophialex.health.record.common.GeographyTreeInit;
import com.sophialex.health.record.common.bind.swt.annotations.AnnotionProcessor;
import com.sophialex.health.record.common.bind.swt.annotations.ListPathBindTo;
import com.sophialex.health.record.common.bind.swt.annotations.ListPathComboDataBindTo;
import com.sophialex.health.record.common.utils.CommonUtils;
import com.sophialex.health.record.common.utils.ImageUtil;
import com.sophialex.health.system.frame.resource.RcpResourceManager;
import com.sophialex.health.system.validation.ValidateType.ValidateEnum;
import com.sophialex.health.system.validation.validator.CommonFieldValidate;
import com.sophialex.health.system.validation.validator.SophiaValidateUtil;

/**
 * 个人基本信息UI
 * <p>
 * Title:Health
 * </p>
 * <p>
 * PersonBaseInfoUI
 * </p>
 * Alex Apr 25, 2011 1:59:00 PM create
 * 
 * @author <a href='wanghao924@126.com'>Alex</a> QQ: 873987060;
 * @version 1.0
 */
public abstract class PersonBaseInfoUI extends ViewPart {

	public PersonBaseInfoUI() {
	}

	@Override
	public void setFocus() {
		txtName.setFocus();
		//MessageDialog.openInformation(null, "", "");

	}

	public static final String ID = "com.sophialex.health.record.ui.PersonBaseInfoUI"; //$NON-NLS-1$

	private Composite composite_1;

	private final FormToolkit toolkit = new FormToolkit(Display.getCurrent());

	public CTabFolder tabFolder;

	protected ToolItem toolItemEdit;

	protected ToolItem toolItemDel;

	protected ToolItem toolItemSave;

	protected ToolItem toolItemCancel;

	protected ToolItem toolItemAdd;

	protected AnnotionProcessor ap = new AnnotionProcessor(this);

	/********************************* 个人基本信息所用字段 *************************/
	@ListPathBindTo(beanPath = "person.name")
	protected Text txtName;// 姓名

	@ListPathBindTo(beanPath = "person.idno")
	protected Text txtIdno;// 身份证

	@ListPathBindTo(beanPath = "person.mobile")
	protected Text txtMobile;// 联系电话


	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "person.occupation")
	protected Combo cmbOccupation;// 职业

	@ListPathBindTo(beanPath = "person.occupationOther")
	protected Text txtOccupationOther;// 职业其他
	
	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "person.sex")
	protected Combo cmbSex;// 性别

	@ListPathBindTo(UIPropName = "selection", beanPath = "person.birthday")
	protected DateTime dtBirthday;// 生日

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "person.nationality")
	protected Combo cmbNationality;// 民族

	@ListPathBindTo(beanPath="person.nationalityOther")
	protected Text txtNationalityOther;// 民族其他

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "person.bloodType")
	protected Combo cmbBloodType;// 血型

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "person.educate")
	protected Combo cmbEducate;// 文化程度

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "person.married")
	protected Combo cmbMarried;// 婚姻

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "person.payTypeId")
	protected Combo cmbPayTypeId;// 医疗费用支付方式

	@ListPathBindTo(beanPath = "person.archiveSerial")
	protected Text txtArchiveSerial;// 档案编号

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "person.archiveUserId")
	protected Combo cmbArchiveUserId;// 建档人

	@ListPathBindTo(UIPropName = "selection", beanPath = "person.archiveDate")
	protected DateTime dtArchiveDate;// 建档日期

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "person.archiveOrgId")
	protected Combo cmbArchiveOrgId;// 建档单位

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "person.adminUserId")
	protected Combo cmbAdminUserId;// 责任医生

	@ListPathBindTo(beanPath = "person.emergencyPerson")
	protected Text txtJJLXR;// 紧急情况联系人

	@ListPathBindTo(beanPath = "person.emergencyPhone")
	protected Text txtJJLXDL;// 紧急情况联系电话

	protected GeographyTreeCombo cmbCommittee;// 居委会

	protected HrPerson person = new HrPerson();
    
	protected SophiaValidateUtil validateUtil = new SophiaValidateUtil();

	/*************************************** 个人健康史Tab **************************************/
	protected PersonHistoryXMLPojo personHistory = new PersonHistoryXMLPojo();

	/* 过敏史 */

	protected Button chkZJMZJGM;// 镇静麻醉剂过敏

	protected Button chkDWMFGM;// 动物毛发过敏

	protected Button chkKSMGM;// 抗生素过敏

	protected Button chkGJLSGGM;// 柑橘类水果过敏

	protected Button chkSNHCGM;// 室内灰尘过敏

	protected Button chkJDGM;// 鸡蛋过敏

	protected Button chkYJBKLSPGM;// 鱼及贝壳类食品过敏

	protected Button chkDGM;// 碘过敏

	protected Button chkNNGM;// 牛奶过敏

	protected Button chkDKDGRGM;// 带壳的果仁过敏

	protected Button chkHFGM;// 花粉过敏

	protected Button chkQTGM;// 其他过敏

	/* 既往史 */

	/* 既往史-疾病 */

	// 1)

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.illness.ill.1.illnessName.value")
	protected Text txtJBMC1;// 疾病名称1

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.illness.ill.1.illnessDate.value")
	protected DateTime dtQZSZ1;

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.anamnesisHistory.illness.ill.1.lapse.value")
	protected Combo comboZGQG1;

	// 2)

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.illness.ill.2.illnessName.value")
	protected Text txtJBMC2;// 疾病名称2

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.illness.ill.2.illnessDate.value")
	protected DateTime dtQZSZ2;

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.anamnesisHistory.illness.ill.2.lapse.value")
	protected Combo comboZGQG2;

	// 3)
	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.illness.ill.3.illnessName.value")
	protected Text txtJBMC3;// 疾病名称3

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.illness.ill.3.illnessDate.value")
	protected DateTime dtQZSZ3;

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.anamnesisHistory.illness.ill.3.lapse.value")
	protected Combo comboZGQG3;

	// 4)
	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.illness.ill.4.illnessName.value")
	protected Text txtJBMC4;// 名称

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.illness.ill.4.illnessDate.value")
	protected DateTime dtQZSZ4;

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.anamnesisHistory.illness.ill.4.lapse.value")
	protected Combo comboZGQG4;

	/* 既往史-手术 */

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.anamnesisHistory.operations.whetherOperation.value")
	protected Combo comboSS;// 有无

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.operations.operation.1.operationTime.value")
	protected DateTime dtSSSJ1;// 手术时间1

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.operations.operation.2.operationTime.value")
	protected DateTime dtSSSJ2;// 手术时间2

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.operations.operation.1.operationName.value")
	protected Text txtSSMC1;// 手术名称1

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.operations.operation.2.operationName.value")
	protected Text txtSSMC2;// 手术名称2

	/* 既往史 */

	// 外伤
	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.anamnesisHistory.imjurys.whetherImjury.value")
	protected Combo comboWS;// 有无

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.imjurys.imjury.1.imjuryTime.value")
	protected DateTime dtWSSJ1;// 时间1

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.imjurys.imjury.2.imjuryTime.value")
	protected DateTime dtWSSJ2;// 时间2

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.imjurys.imjury.1.imjuryName.value")
	protected Text txtWSMC1;// 名称1

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.imjurys.imjury.2.imjuryName.value")
	protected Text txtWSMC2;// 名称2

	// 输血
	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.anamnesisHistory.transfuses.whetherTransfuse.value")
	protected Combo comboSX;// 有无

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.transfuses.transfuse.1.transfuseTime.value")
	protected DateTime dtSXSJ1;// 输血时间1

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.transfuses.transfuse.1.transfuseCause.value")
	protected Text txtSXYY1;// 原因1

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.transfuses.transfuse.2.transfuseTime.value")
	protected DateTime dtSXSJ2;// 时间2

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.transfuses.transfuse.2.transfuseCause.value")
	protected Text txtSXYY2;// 原因2

	// 住院
	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.anamnesisHistory.hospitals.whetherInHosptial.value")
	protected Combo comboZY;// 有无

	// 1)
	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.1.inHosptialCause.value")
	protected Text txtZYYY1;// 原因1

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.1.hosptialName.value")
	protected Text txtYLJGMC1;// 医疗机构名称

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.1.inHosptialTime.value")
	protected DateTime dtRYSJ1;// 入院时间1

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.1.outHosptialTime.value")
	protected DateTime dtCYSJ1;// 出院时间1

	// 2)
	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.2.inHosptialCause.value")
	protected Text txtZYYY2;// 原因

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.2.hosptialName.value")
	protected Text txtYLJGMC2;// 医疗机构名称

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.2.inHosptialTime.value")
	protected DateTime dtRYSJ2;// 入院时间

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.2.outHosptialTime.value")
	protected DateTime dtCYSJ2;// 出院时间

	// 3)
	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.3.inHosptialCause.value")
	protected Text txtZYYY3;// 原因

	@ListPathBindTo(beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.3.hosptialName.value")
	protected Text txtYLJGMC3;// 医疗机构名称

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.3.inHosptialTime.value")
	protected DateTime dtRYSJ3;// 入院时间

	@ListPathBindTo(UIPropName = "selection", beanPath = "personHistory.anamnesisHistory.hospitals.inhosptial.3.outHosptialTime.value")
	protected DateTime dtCYSJ3;// 出院时间

	/* 女性 */

	// -月经
	@ListPathBindTo(beanPath = "personHistory.woman.menses.menophaniaAge.value")
	protected Text txtNXCCNL;// 初潮年龄

	@ListPathBindTo(beanPath = "personHistory.woman.menses.menstrualCycle.value")
	protected Text txtYJZQ;// 月经周期

	@ListPathBindTo(beanPath = "personHistory.woman.menses.throughDays.value")
	protected Text txtXJTS;// 行经天数

	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.woman.menses.pausimenia.value")
	protected Combo cmbNXJJ;// 绝经（是/否）

	@ListPathBindTo(beanPath = "personHistory.woman.menses.pausimeniaAge.value")
	protected Text txtNXJJNL;// 绝经年龄

	// 生育史
	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.woman.birthhistory.birthControlStyle.value")
	protected Combo cmbNXBBFY;// 避孕方式

	@ListPathBindTo(beanPath = "personHistory.woman.birthhistory.gravidityTimes.value")
	protected Text txtNXRCCS;// 妊娠次数

	@ListPathBindTo(beanPath = "personHistory.woman.birthhistory.bearTimes.value")
	protected Text txtNXSYCS;// 生育次数

	@ListPathBindTo(beanPath = "personHistory.woman.birthhistory.cesareanSectionTimes.value")
	protected Text txtNXPGCCS;// 剖宫产次数

	@ListPathBindTo(beanPath = "personHistory.woman.birthhistory.spontaneousAbortionTimes.value")
	protected Text txtNXZRLCCS;// 自然流产次数

	@ListPathBindTo(beanPath = "personHistory.woman.birthhistory.artificialAbortionTimes.value")
	protected Text txtNXRGLCCS;// 人工流产次数

	/* 家族史 */
	// 祖父母
	protected Button chkZFMGXY;// 高血压

	protected Button chkZFMTNB;// 糖尿病

	protected Button chkZFMGXB;// 冠心病

	protected Button chkZFMEXZL;// 恶性肿瘤

	protected Button chkZFMGMZ;// 过敏症

	protected Button chkZFMJSFL;// 精神分裂

	protected Button chkZFMNZZ;// 脑卒中

	protected Button chkZFMJHB;// 结核病

	protected Button chkZFMGY;// 肝炎

	protected Button chkZFMXTJX;// 先天畸形

	protected Button chkZFMQT;// 其他

	@ListPathBindTo(beanPath = "personHistory.kindredHistory.grandparent.grandparentiness.additionDescription")
	protected Text txtZFMQT;// 其他

	// 外祖父母
	protected Button chkWZFMGXY;// 高血压

	protected Button chkWZFMTNB;// 糖尿病

	protected Button chkWZFMGXB;// 冠心病

	protected Button chkWZFMEXZL;// 恶性肿瘤

	protected Button chkWZFMGMZ;// 过敏症

	protected Button chkWZFMJSFL;// 精神分裂

	protected Button chkWZFMNZZ;// 脑卒中

	protected Button chkWZFMJHB;// 结核病

	protected Button chkWZFMGY;// 肝炎

	protected Button chkWZFMXTJX;// 先天畸形

	protected Button chkWZFMQT;// 其他

	@ListPathBindTo(beanPath = "personHistory.kindredHistory.materialGrandparent.materialGrandparentiness.additionDescription")
	protected Text txtWZFMQT;// 其他文本

	// 父亲
	protected Button chkFQGXY;// 高血压

	protected Button chkFQTNB;// 糖尿病

	protected Button chkFQGXB;// 冠心病

	protected Button chkFQEXZL;// 恶性肿瘤

	protected Button chkFQGMZ;// 过敏症

	protected Button chkFQJSFL;// 精神分裂

	protected Button chkFQNZZ;// 脑卒中

	protected Button chkFQJHB;// 结核病

	protected Button chkFQGY;// 肝炎

	protected Button chkFQXTJX;// 先天畸形

	protected Button chkFQQT;// 其他

	@ListPathBindTo(beanPath = "personHistory.kindredHistory.father.fatheriness.additionDescription")
	protected Text txtFQQT;// 其他文本

	// 母亲
	protected Button chkMQGXY;// 高血压

	protected Button chkMQTNB;// 糖尿病

	protected Button chkMQGXB;// 冠心病

	protected Button chkMQEXZL;// 恶性肿瘤

	protected Button chkMQGMZ;// 过敏症

	protected Button chkMQJSFL;// 精神分裂

	protected Button chkMQNZZ;// 脑卒中

	protected Button chkMQJHB;// 结核病

	protected Button chkMQGY;// 肝炎

	protected Button chkMQXTJX;// 先天畸形

	protected Button chkMQQT;// 其他

	@ListPathBindTo(beanPath = "personHistory.kindredHistory.mother.motheriness.additionDescription")
	protected Text txtMQQT;// 其他文本

	// 兄弟姐妹
	protected Button chkXDJMGXY;// 高血压

	protected Button chkXDJMTNB;// 糖尿病

	protected Button chkXDJMGXB;// 冠心病

	protected Button chkXDJMEXZL;// 恶性肿瘤

	protected Button chkXDJMGMZ;// 过敏症

	protected Button chkXDJMJSFL;// 精神分裂

	protected Button chkXDJMNZZ;// 脑卒中

	protected Button chkXDJMJHB;// 结核病

	protected Button chkXDJMGY;// 肝炎

	protected Button chkXDJMXTJX;// 先天畸形

	protected Button chkXDJMQT;// 其他

	@ListPathBindTo(beanPath = "personHistory.kindredHistory.sister.sisteriness.additionDescription")
	protected Text txtXDJMQT;// 其他文本

	// 子女
	protected Button chkZNGXY;// 高血压

	protected Button chkZNTNB;// 糖尿病

	protected Button chkZNGXB;// 冠心病

	protected Button chkZNEXZL;// 恶性肿瘤

	protected Button chkZNGMZ;// 过敏症

	protected Button chkZNJSFL;// 精神分裂

	protected Button chkZNNZZ;// 脑卒中

	protected Button chkZNJHB;// 结核病

	protected Button chkZNGY;// 肝炎

	protected Button chkZNXTJX;// 先天畸形

	protected Button chkZNQT;// 其他

	@ListPathBindTo(beanPath = "personHistory.kindredHistory.child.childiness.additionDescription")
	protected Text txtZNQT;// 其他文本

	/* 其他 */
	// 遗传病史
	@ListPathComboDataBindTo(dataPath = "codeNum", beanPath = "personHistory.geneticHistorys.geneticHistory.value")
	protected Combo cmbYCBSYW;// 有无

	@ListPathBindTo(beanPath = "personHistory.geneticHistorys.geneticHistory.additionDescription")
	protected Text txtJBMC;// 疾病名称

	// 有无残疾
	protected Button chkWCJ;// 无

	protected Button chkTLCJ;// 听力残疾

	protected Button chkYYCJ;// 言语残疾

	protected Button chkZTCJ;// 肢体残疾

	protected Button chkZLCJ;// 智力残疾

	protected Button chkJSCJ;// 精神残疾

	protected Button chkQTCJ;// 其他残疾

	@ListPathBindTo(beanPath = "personHistory.deformityHistorys.deformityHistory.additionDescription")
	protected Text txtQTCJ;// 其他残疾

	@ListPathBindTo(beanPath = "personHistory.deformityHistorys.deformityHistoryNo.value")
	protected Text txtCJZBH;// 残疾证编号

	/* 操作信息 *///暂无字段
	protected DateTime dtJLRQ;// 记录日期

	protected Combo cmbZRYS;// 责任医生

	// 女性Section,提取出来为了根据性别来显示/隐藏它
	protected Section sectWoman;

	// *******************************************************************end

	protected GeographyTreeInit treeObj = new GeographyTreeInit();

	protected PersonBaseInfoViewState viewstate = PersonBaseInfoViewState.ADD_VIEW;

	protected Composite baseContainer;

	private Button btnChoosePerson;

	protected Composite hisContainer;

	

	protected enum PersonBaseInfoViewState {
		ADD_VIEW, EDIT_VIEW, SHOW_VIEW;
	}

	/**
	 * Create contents of the view part.
	 * 
	 * @param parent
	 */
	@Override
	public void createPartControl(Composite parent) {
		Composite container = new Composite(parent, SWT.NONE);
		container.setLayout(new FormLayout());
		{
			composite_1 = new Composite(container, SWT.NONE);
			composite_1.setLayout(new FillLayout(SWT.HORIZONTAL));
			{
				FormData formData = new FormData();
				formData.height = 50;
				formData.right = new FormAttachment(100);
				formData.top = new FormAttachment(0);
				formData.left = new FormAttachment(0);
				composite_1.setLayoutData(formData);
			}
			{
				ToolBar toolBar = new ToolBar(composite_1, SWT.FLAT | SWT.NONE);
				toolBar.setBackgroundImage(ImageUtil.TBBJ);
				{
					toolItemAdd = new ToolItem(toolBar, SWT.NONE);
					toolItemAdd.setText(Messages.getString("RecordUI.0")); //$NON-NLS-1$
					toolItemAdd.setImage(ImageUtil.add);
					toolItemAdd.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doAdd();
						}
					});
				}
				{
					toolItemEdit = new ToolItem(toolBar, SWT.NONE);
					toolItemEdit.setText(Messages.getString("RecordUI.1")); //$NON-NLS-1$
					toolItemEdit.setImage(ImageUtil.edit);
					toolItemEdit.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doEdit();
						}
					});
				}
				{
					toolItemDel = new ToolItem(toolBar, SWT.NONE);
					toolItemDel.setText(Messages.getString("RecordUI.2")); //$NON-NLS-1$
					toolItemDel.setImage(ImageUtil.delete);
					toolItemDel.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doDel();
						}
					});
				}
				{
					@SuppressWarnings("unused")
					ToolItem toolItem = new ToolItem(toolBar, SWT.SEPARATOR);
				}
				{
					toolItemSave = new ToolItem(toolBar, SWT.NONE);
					toolItemSave.setText(Messages.getString("RecordUI.3")); //$NON-NLS-1$
					toolItemSave.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doSave();
						}
					});
					toolItemSave.setImage(ImageUtil.save);
				}

				{
					toolItemCancel = new ToolItem(toolBar, SWT.NONE);
					toolItemCancel.setText(Messages.getString("RecordUI.4")); //$NON-NLS-1$
					toolItemCancel.addSelectionListener(new SelectionAdapter() {
						@Override
						public void widgetSelected(SelectionEvent e) {
							doCancel();
						}
					});
					toolItemCancel.setImage(ImageUtil.cancel);
				}
				/*
				 * { ToolItem toolItem = new ToolItem(toolBar, SWT.NONE);
				 * toolItem.setText(Messages.getString("RecordUI.5"));
				 * //$NON-NLS-1$ toolItem.setImage(ImageUtil.print);
				 * toolItem.addSelectionListener(new SelectionAdapter() {
				 * 
				 * @Override public void widgetSelected(SelectionEvent e) {
				 * doPrint(); } }); }
				 */
			}
		}

		{
			Composite composite = new Composite(container, SWT.NONE);
			{
				FormData formData = new FormData();
				formData.top = new FormAttachment(composite_1, 0);
				formData.bottom = new FormAttachment(100, -4);
				formData.right = new FormAttachment(composite_1, 0, SWT.RIGHT);
				formData.left = new FormAttachment(composite_1, 0, SWT.LEFT);
				composite.setLayout(new FillLayout(SWT.FILL));
				composite.setLayoutData(formData);
			}
			tabFolder = new CTabFolder(composite, SWT.NONE);

			tabFolder.setSelectionForeground(RcpResourceManager.getColor(0, 5, 127));
			tabFolder.setSimple(false);
			tabFolder.setFont(ImageUtil.font_10);
			tabFolder.setForeground(ImageUtil.BALCK);
			tabFolder.setBackground(RcpResourceManager.getColor(236, 233, 216));
			tabFolder.setSelectionBackground(ImageUtil.TABFOLDER_SELECTION_BG, ImageUtil.TABFOLDER_SELECTION_PERCENTS, true);
			tabFolder.setUnselectedImageVisible(false);

			creatBaseInfoTabItem(); // 个人基本信息
			creatPersonHistoryTabItem(); // 个人疾病史
			tabFolder.setSelection(0);
		}
		createActions();
		initializeToolBar();
		initializeMenu();

		this.setPartName(Messages.getString("RecordUI.Title0")); //$NON-NLS-1$

		addlistener();
	}

	/**
	 * 个人基本信息TabItem
	 * 
	 * @author Alex Apr 25, 2011 4:06:12 PM create
	 */
	private void creatBaseInfoTabItem() {
		final CTabItem tabItem_1 = new CTabItem(tabFolder, SWT.NONE);
		tabItem_1.setText(Messages.getString("TabItem.0"));
		// tabItem_1.setData();
		// tabItem_1.setImage();
		// Composite composite = new Composite(tabFolder, SWT.NONE);

		Composite composite = toolkit.createComposite(tabFolder, SWT.NONE);
		composite.setBackground(ImageUtil.tabItembackcolor);
		composite.setLayout(new FillLayout(SWT.FILL));
		//composite.setLayout(new FormLayout());
		tabItem_1.setControl(composite);
		createPersonBaseInfoUI(composite);
	}

	/**
	 * 个人健康史TabItem
	 * 
	 * @author Alex Apr 25, 2011 4:06:12 PM create
	 */
	private void creatPersonHistoryTabItem() {
		final CTabItem tabItem_1 = new CTabItem(tabFolder, SWT.NONE);
		tabItem_1.setText(Messages.getString("TabItem.1"));
		// tabItem_1.setData();
		// tabItem_1.setImage();
		Composite composite = new Composite(tabFolder, SWT.NONE);
		composite.setBackground(ImageUtil.tabItembackcolor);
		composite.setLayout(new FillLayout(SWT.FILL));
		tabItem_1.setControl(composite);
		createPersonHistoryUI(composite);
	}

	/**
	 * 个人健康史
	 * 
	 * @param parent
	 * @author Alex Apr 25, 2011 4:05:53 PM create
	 */
	private void createPersonHistoryUI(Composite parent) {
		hisContainer = parent;
		int row_space = 24;
		ScrolledComposite scrolledComposite = new ScrolledComposite(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
		toolkit.adapt(scrolledComposite);
		toolkit.paintBordersFor(scrolledComposite);
		scrolledComposite.setExpandHorizontal(true);
		scrolledComposite.setExpandVertical(true);

		Composite topLevelContainer = toolkit.createComposite(scrolledComposite, SWT.NONE);
		toolkit.paintBordersFor(topLevelContainer);
		topLevelContainer.setLayout(new FillLayout(SWT.HORIZONTAL));

		ScrolledForm scrldfrmNewScrolledform = toolkit.createScrolledForm(topLevelContainer);
		toolkit.paintBordersFor(scrldfrmNewScrolledform);
		scrldfrmNewScrolledform.getBody().setLayout(new FormLayout());

		Section sctnAllergy = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sctnAllergy = new FormData();
		fd_sctnAllergy.right = new FormAttachment(100, -15);
		fd_sctnAllergy.top = new FormAttachment(0, 10);
		fd_sctnAllergy.left = new FormAttachment(0, 15);
		sctnAllergy.setLayoutData(fd_sctnAllergy);
		toolkit.paintBordersFor(sctnAllergy);
		sctnAllergy.setText(Messages.getString("PersonBaseInfoUI.sctnAllergy"));//过敏史
		sctnAllergy.setExpanded(true);
		
		//Messages.getString("PersonBaseInfoUI.secBaseInfo")
		Composite composite = toolkit.createComposite(sctnAllergy, SWT.NONE);
		toolkit.paintBordersFor(composite);
		sctnAllergy.setClient(composite);
		composite.setLayout(new FormLayout());

		chkZJMZJGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkZJMZJGM"), SWT.CHECK);//"镇静麻醉剂过敏"
		FormData fd_chkZJMZJGM = new FormData();
		fd_chkZJMZJGM.left = new FormAttachment(4, 10);
		chkZJMZJGM.setLayoutData(fd_chkZJMZJGM);

		chkDWMFGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkDWMFGM"), SWT.CHECK);//动物毛发过敏
		// fd_button.top = new FormAttachment(button_1, 0, SWT.TOP);
		FormData fd_chkDWMFGM = new FormData();
		fd_chkDWMFGM.left = new FormAttachment(chkZJMZJGM, 36);
		chkDWMFGM.setLayoutData(fd_chkDWMFGM);

		chkKSMGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkKSMGM"), SWT.CHECK);//抗生素过敏
		FormData fd_chkKSMGM = new FormData();
		fd_chkKSMGM.left = new FormAttachment(chkDWMFGM, 36);
		chkKSMGM.setLayoutData(fd_chkKSMGM);

		chkGJLSGGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkGJLSGGM"), SWT.CHECK);//"柑橘类水果过敏"
		FormData fd_chkGJLSGGM = new FormData();
		fd_chkGJLSGGM.left = new FormAttachment(chkKSMGM, 36);
		chkGJLSGGM.setLayoutData(fd_chkGJLSGGM);

		chkSNHCGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkSNHCGM"), SWT.CHECK);//室内灰尘过敏
		FormData fd_chkSNHCGM = new FormData();
		fd_chkSNHCGM.left = new FormAttachment(chkGJLSGGM, 36);
		chkSNHCGM.setLayoutData(fd_chkSNHCGM);

		chkJDGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkJDGM"), SWT.CHECK);//鸡蛋过敏
		FormData fd_chkJDGM = new FormData();
		fd_chkJDGM.left = new FormAttachment(chkSNHCGM, 36);
		chkJDGM.setLayoutData(fd_chkJDGM);

		chkYJBKLSPGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkYJBKLSPGM"), SWT.CHECK);//鱼及贝壳类食品过敏
		FormData fd_chkYJBKLSPGM = new FormData();
		fd_chkYJBKLSPGM.top = new FormAttachment(chkZJMZJGM, row_space);
		fd_chkYJBKLSPGM.left = new FormAttachment(chkZJMZJGM, 0, SWT.LEFT);
		chkYJBKLSPGM.setLayoutData(fd_chkYJBKLSPGM);

		chkDGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkDGM"), SWT.CHECK);//碘过敏
		FormData fd_chkDGM = new FormData();
		fd_chkDGM.left = new FormAttachment(chkDWMFGM, 0, SWT.LEFT);
		fd_chkDGM.top = new FormAttachment(chkYJBKLSPGM, 0, SWT.TOP);
		chkDGM.setLayoutData(fd_chkDGM);

		chkNNGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkNNGM"), SWT.CHECK);//牛奶过敏
		FormData fd_chkNNGM = new FormData();
		fd_chkNNGM.left = new FormAttachment(chkKSMGM, 0, SWT.LEFT);
		fd_chkNNGM.top = new FormAttachment(chkDGM, 0, SWT.TOP);
		chkNNGM.setLayoutData(fd_chkNNGM);

		chkDKDGRGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkDKDGRGM"), SWT.CHECK);//带壳的果仁过敏
		FormData fd_chkDKDGRGM = new FormData();
		fd_chkDKDGRGM.left = new FormAttachment(chkGJLSGGM, 0, SWT.LEFT);
		fd_chkDKDGRGM.top = new FormAttachment(chkNNGM, 0, SWT.TOP);
		chkDKDGRGM.setLayoutData(fd_chkDKDGRGM);

		chkHFGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkHFGM"), SWT.CHECK);//花粉过敏
		FormData fd_chkHFGM = new FormData();
		fd_chkHFGM.left = new FormAttachment(chkSNHCGM, 0, SWT.LEFT);
		fd_chkHFGM.top = new FormAttachment(chkDKDGRGM, 0, SWT.TOP);
		chkHFGM.setLayoutData(fd_chkHFGM);

		chkQTGM = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.chkQTGM"), SWT.CHECK);//其他过敏
		FormData fd_chkQTGM = new FormData();
		fd_chkQTGM.left = new FormAttachment(chkJDGM, 0, SWT.LEFT);
		fd_chkQTGM.top = new FormAttachment(chkHFGM, 0, SWT.TOP);
		chkQTGM.setLayoutData(fd_chkQTGM);

		Section sectOldTimey = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sectOldTimey = new FormData();
		fd_sectOldTimey.right = new FormAttachment(100, -15);
		fd_sectOldTimey.top = new FormAttachment(sctnAllergy, 10, SWT.BOTTOM);
		fd_sectOldTimey.left = new FormAttachment(0, 15);

		sectOldTimey.setLayoutData(fd_sectOldTimey);
		toolkit.paintBordersFor(sectOldTimey);
		sectOldTimey.setText(Messages.getString("PersonBaseInfoUI.sectOldTimey"));//既往史
		sectOldTimey.setExpanded(true);

		Composite compOldTimey = toolkit.createComposite(sectOldTimey, SWT.NONE);
		toolkit.paintBordersFor(compOldTimey);
		sectOldTimey.setClient(compOldTimey);
		compOldTimey.setLayout(new FormLayout());

		Label lblJB = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblJB"), SWT.NONE);//疾病
		lblJB.setFont(RcpResourceManager.getFont("宋体", 9, SWT.BOLD));
		FormData fd_lblJB = new FormData();
		fd_lblJB.top = new FormAttachment(6);
		fd_lblJB.left = new FormAttachment(4, 10);
		lblJB.setLayoutData(fd_lblJB);

		Label lblQZSJ1 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblQZSJ1"), SWT.NONE);//"1) 确诊时间："
		FormData fd_lblQZSJ1 = new FormData();
		fd_lblQZSJ1.top = new FormAttachment(lblJB, 0, SWT.TOP);
		fd_lblQZSJ1.left = new FormAttachment(lblJB, 12);
		lblQZSJ1.setLayoutData(fd_lblQZSJ1);

		dtQZSZ1 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.SHORT);
		// txtQZSJN1 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		// txtQZSJN1.setText("");
		FormData fd_dtQZSZ1 = new FormData();
		fd_dtQZSZ1.left = new FormAttachment(lblQZSJ1, 2);
		fd_dtQZSZ1.top = new FormAttachment(lblJB, -4, SWT.TOP);
		fd_dtQZSZ1.bottom = new FormAttachment(lblJB, 4, SWT.BOTTOM);
		dtQZSZ1.setLayoutData(fd_dtQZSZ1);
		toolkit.adapt(dtQZSZ1, true, true);

		
		Label lblJBMC1 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblJBMC1"), SWT.NONE);//"疾病名称："
		FormData fd_lblJBMC1 = new FormData();
		fd_lblJBMC1.top = new FormAttachment(lblJB, 0, SWT.TOP);
		// fd_lblNewLabel_1.bottom = new FormAttachment(lblNewLabel, 0,
		// SWT.BOTTOM);
		fd_lblJBMC1.left = new FormAttachment(dtQZSZ1, 6);
		lblJBMC1.setLayoutData(fd_lblJBMC1);

		txtJBMC1 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtJBMC1.setText("");
		FormData fd_txtJBMC1 = new FormData();
		fd_txtJBMC1.right = new FormAttachment(lblJBMC1, 200, SWT.RIGHT);
		fd_txtJBMC1.left = new FormAttachment(lblJBMC1, 2);
		fd_txtJBMC1.top = new FormAttachment(lblJBMC1, 0, SWT.TOP);
		txtJBMC1.setLayoutData(fd_txtJBMC1);

		Label lblZGQK1 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblZGQK1"), SWT.NONE);//"   转归情况："
		FormData fd_lblZGQK1 = new FormData();
		fd_lblZGQK1.top = new FormAttachment(lblJBMC1, 0, SWT.TOP);
		fd_lblZGQK1.left = new FormAttachment(txtJBMC1, 10);
		lblZGQK1.setLayoutData(fd_lblZGQK1);

		comboZGQG1 = new Combo(compOldTimey, SWT.NONE);
		// comboZGQG.setItems(new String[] {"痊愈", "好转", "未愈"});
		FormData fd_comboZGQG1 = new FormData();
		fd_comboZGQG1.left = new FormAttachment(lblZGQK1, 10);
		fd_comboZGQG1.top = new FormAttachment(lblZGQK1, -2, SWT.TOP);
		comboZGQG1.setLayoutData(fd_comboZGQG1);
		toolkit.adapt(comboZGQG1);
		toolkit.paintBordersFor(comboZGQG1);

		Label lblQZSJ2 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblQZSJ2"), SWT.NONE);//"2) 确诊时间："
		FormData fd_lblQZSJ2 = new FormData();
		fd_lblQZSJ2.top = new FormAttachment(lblQZSJ1, row_space);
		fd_lblQZSJ2.left = new FormAttachment(lblQZSJ1, 0, SWT.LEFT);
		lblQZSJ2.setLayoutData(fd_lblQZSJ2);

		dtQZSZ2 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.SHORT);
		FormData fd_dtQZSZ2 = new FormData();
		fd_dtQZSZ2.left = new FormAttachment(dtQZSZ1, 0, SWT.LEFT);
		fd_dtQZSZ2.top = new FormAttachment(lblQZSJ2, -4, SWT.TOP);
		fd_dtQZSZ2.bottom = new FormAttachment(lblQZSJ2, 4, SWT.BOTTOM);
		dtQZSZ2.setLayoutData(fd_dtQZSZ2);
		toolkit.adapt(dtQZSZ2, true, true);

		Label lblJBMC2 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblJBMC1"), SWT.NONE);//疾病名称
		FormData fd_lblJBMC2 = new FormData();
		fd_lblJBMC2.top = new FormAttachment(lblQZSJ2, 0, SWT.TOP);
		fd_lblJBMC2.left = new FormAttachment(lblJBMC1, 0, SWT.LEFT);
		lblJBMC2.setLayoutData(fd_lblJBMC2);

		txtJBMC2 = toolkit.createText(compOldTimey, "", SWT.NONE);
		txtJBMC2.setLayoutData(new FormData());
		FormData fd_txtJBMC2 = new FormData();
		fd_txtJBMC2.left = new FormAttachment(lblJBMC2, 2);
		fd_txtJBMC2.top = new FormAttachment(lblJBMC2, 0, SWT.TOP);
		txtJBMC2.setLayoutData(fd_txtJBMC2);

		Label lblZGQK2 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblZGQK1"), SWT.NONE);//转归情况
		fd_txtJBMC2.right = new FormAttachment(lblZGQK2, -10);
		FormData fd_lblZGQK2 = new FormData();
		fd_lblZGQK2.top = new FormAttachment(txtJBMC2, 0, SWT.TOP);
		fd_lblZGQK2.left = new FormAttachment(lblZGQK1, 0, SWT.LEFT);
		lblZGQK2.setLayoutData(fd_lblZGQK2);

		comboZGQG2 = new Combo(compOldTimey, SWT.NONE);
		// comboZGQG.setItems(new String[] {"痊愈", "好转", "未愈"});
		FormData fd_comboZGQG2 = new FormData();
		fd_comboZGQG2.left = new FormAttachment(comboZGQG1, 0, SWT.LEFT);
		fd_comboZGQG2.top = new FormAttachment(lblZGQK2, -2, SWT.TOP);
		comboZGQG2.setLayoutData(fd_comboZGQG2);
		toolkit.adapt(comboZGQG2);
		toolkit.paintBordersFor(comboZGQG2);

		Label lblQZSJ3 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblQZSJ3"), SWT.NONE);//"3) 确诊时间："
		FormData fd_lblQZSJ3 = new FormData();
		fd_lblQZSJ3.top = new FormAttachment(lblQZSJ2, row_space);
		fd_lblQZSJ3.left = new FormAttachment(lblQZSJ2, 0, SWT.LEFT);
		lblQZSJ3.setLayoutData(fd_lblQZSJ3);

		dtQZSZ3 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.SHORT);
		FormData fd_dtQZSZ3 = new FormData();
		fd_dtQZSZ3.left = new FormAttachment(dtQZSZ2, 0, SWT.LEFT);
		fd_dtQZSZ3.top = new FormAttachment(lblQZSJ3, -4, SWT.TOP);
		fd_dtQZSZ3.bottom = new FormAttachment(lblQZSJ3, 4, SWT.BOTTOM);
		dtQZSZ3.setLayoutData(fd_dtQZSZ3);
		toolkit.adapt(dtQZSZ3, true, true);

		Label lblJBMC3 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblJBMC1"), SWT.NONE);//病症名称3
		FormData fd_lblJBMC3 = new FormData();
		fd_lblJBMC3.top = new FormAttachment(lblQZSJ3, 0, SWT.TOP);
		fd_lblJBMC3.left = new FormAttachment(lblJBMC2, 0, SWT.LEFT);

		lblJBMC3.setLayoutData(fd_lblJBMC3);

		txtJBMC3 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtJBMC3.setText("");
		FormData fd_txtJBMC3 = new FormData();
		fd_txtJBMC3.top = new FormAttachment(lblJBMC3, 0, SWT.TOP);
		fd_txtJBMC3.left = new FormAttachment(txtJBMC2, 0, SWT.LEFT);
		fd_txtJBMC3.right = new FormAttachment(txtJBMC2, 0, SWT.RIGHT);
		txtJBMC3.setLayoutData(fd_txtJBMC3);

		Label lblZGQK3 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblZGQK1"), SWT.NONE);//"   转归情况："
		FormData fd_lblZGQK3 = new FormData();
		fd_lblZGQK3.top = new FormAttachment(txtJBMC3, 0, SWT.TOP);
		fd_lblZGQK3.left = new FormAttachment(lblZGQK2, 0, SWT.LEFT);
		lblZGQK3.setLayoutData(fd_lblZGQK3);

		comboZGQG3 = new Combo(compOldTimey, SWT.NONE);
		// comboZGQG.setItems(new String[] {"痊愈", "好转", "未愈"});
		FormData fd_comboZGQG3 = new FormData();
		fd_comboZGQG3.left = new FormAttachment(comboZGQG2, 0, SWT.LEFT);
		fd_comboZGQG3.top = new FormAttachment(lblZGQK3, -2, SWT.TOP);
		comboZGQG3.setLayoutData(fd_comboZGQG3);
		toolkit.adapt(comboZGQG3);
		toolkit.paintBordersFor(comboZGQG3);

		Label lblQZSJ4 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblQZSJ4"), SWT.NONE);//"4) 确诊时间："
		FormData fd_lblQZSJ4 = new FormData();
		fd_lblQZSJ4.top = new FormAttachment(lblQZSJ3, row_space);
		fd_lblQZSJ4.left = new FormAttachment(lblQZSJ3, 0, SWT.LEFT);
		lblQZSJ4.setLayoutData(fd_lblQZSJ4);

		dtQZSZ4 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.SHORT);
		FormData fd_dtQZSZ4 = new FormData();
		fd_dtQZSZ4.left = new FormAttachment(dtQZSZ2, 0, SWT.LEFT);
		fd_dtQZSZ4.top = new FormAttachment(lblQZSJ4, -4, SWT.TOP);
		fd_dtQZSZ4.bottom = new FormAttachment(lblQZSJ4, 4, SWT.BOTTOM);
		dtQZSZ4.setLayoutData(fd_dtQZSZ4);
		toolkit.adapt(dtQZSZ4, true, true);

		Label lblJBMC4 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblJBMC1"), SWT.NONE);//疾病名称4
		FormData fd_lblJBMC4 = new FormData();
		fd_lblJBMC4.top = new FormAttachment(lblQZSJ4, 0, SWT.TOP);
		fd_lblJBMC4.left = new FormAttachment(lblJBMC3, 0, SWT.LEFT);

		lblJBMC4.setLayoutData(fd_lblJBMC4);

		txtJBMC4 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtJBMC4.setText("");
		FormData fd_txtJBMC4 = new FormData();
		fd_txtJBMC4.top = new FormAttachment(lblJBMC4, 0, SWT.TOP);
		fd_txtJBMC4.left = new FormAttachment(txtJBMC3, 0, SWT.LEFT);
		fd_txtJBMC4.right = new FormAttachment(txtJBMC3, 0, SWT.RIGHT);
		// fd_txtJBMC4.bottom = new FormAttachment(100, -2);
		txtJBMC4.setLayoutData(fd_txtJBMC4);

		Label lblZGQK4 = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblZGQK1"), SWT.NONE);//"   转归情况："
		FormData fd_lblZGQK4 = new FormData();
		fd_lblZGQK4.top = new FormAttachment(txtJBMC4, 0, SWT.TOP);
		fd_lblZGQK4.left = new FormAttachment(lblZGQK3, 0, SWT.LEFT);
		lblZGQK4.setLayoutData(fd_lblZGQK4);

		comboZGQG4 = new Combo(compOldTimey, SWT.NONE);
		// comboZGQG.setItems(new String[] {"痊愈", "好转", "未愈"});
		FormData fd_comboZGQG4 = new FormData();
		fd_comboZGQG4.left = new FormAttachment(comboZGQG3, 0, SWT.LEFT);
		fd_comboZGQG4.top = new FormAttachment(lblZGQK4, -2, SWT.TOP);
		comboZGQG4.setLayoutData(fd_comboZGQG4);
		toolkit.adapt(comboZGQG4);
		toolkit.paintBordersFor(comboZGQG4);

		// 手术
		Label lblSS = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblSS"), SWT.NONE);//"手术"
		lblSS.setFont(RcpResourceManager.getFont("宋体", 9, SWT.BOLD));
		FormData fd_lblSS = new FormData();
		fd_lblSS.right = new FormAttachment(lblJB, 0, SWT.RIGHT);
		fd_lblSS.top = new FormAttachment(lblJBMC4, row_space+16, SWT.BOTTOM);
		lblSS.setLayoutData(fd_lblSS);

		Label lblSSYW = toolkit.createLabel(compOldTimey, Messages.getString("PersonBaseInfoUI.lblSSYW"), SWT.NONE);//"有/无："
		FormData fd_lblSSYW = new FormData();
		// fd_lblSSYW.left = new FormAttachment(lblQZSJ4, 0, SWT.LEFT);
		fd_lblSSYW.top = new FormAttachment(lblSS, 0, SWT.TOP);// lblZGQK
		fd_lblSSYW.right = new FormAttachment(lblQZSJ4, 0, SWT.RIGHT);
		lblSSYW.setLayoutData(fd_lblSSYW);

		comboSS = new Combo(compOldTimey, SWT.NONE);
		// comboSS.setItems(new String[] {"有", "无"});
		FormData fd_comboSS = new FormData();
		// fd_comboSS.left = new FormAttachment(lblQZSJ4, 0, SWT.LEFT);
		fd_comboSS.left = new FormAttachment(lblSSYW, 4);
		fd_comboSS.top = new FormAttachment(lblSSYW, -2, SWT.TOP);
		//		
		// fd_lblQZSJ2.top = new FormAttachment(lblQZSJ1, 6);
		// fd_lblQZSJ2.left = new FormAttachment(lblQZSJ1, 0, SWT.LEFT);
		comboSS.setLayoutData(fd_comboSS);
		toolkit.adapt(comboSS);
		toolkit.paintBordersFor(comboSS);

		Label lblSSSJJ1 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblSSSJJ1") , SWT.NONE);//"1) 时间："
		FormData fd_lblSSSJJ1 = new FormData();
		fd_lblSSSJJ1.left = new FormAttachment(comboSS, 8);
		fd_lblSSSJJ1.top = new FormAttachment(comboSS, 2, SWT.TOP);
		lblSSSJJ1.setLayoutData(fd_lblSSSJJ1);

		dtSSSJ1 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtSSSJ1 = new FormData();
		fd_dtSSSJ1.bottom = new FormAttachment(comboSS, 0, SWT.BOTTOM);
		fd_dtSSSJ1.top = new FormAttachment(comboSS, 0, SWT.TOP);
		fd_dtSSSJ1.left = new FormAttachment(lblSSSJJ1, 5);
		dtSSSJ1.setLayoutData(fd_dtSSSJ1);
		toolkit.adapt(dtSSSJ1);
		toolkit.paintBordersFor(dtSSSJ1);

		Label lblSSMC1 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblSSMC1") , SWT.NONE);//"名称："
		FormData fd_lblSSMC1 = new FormData();
		fd_lblSSMC1.left = new FormAttachment(dtSSSJ1, 8);
		fd_lblSSMC1.top = new FormAttachment(dtSSSJ1, 2, SWT.TOP);
		lblSSMC1.setLayoutData(fd_lblSSMC1);

		txtSSMC1 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtSSMC1.setText("");
		FormData fd_txtSSMC1 = new FormData();
		fd_txtSSMC1.right = new FormAttachment(96, -5);
		fd_txtSSMC1.top = new FormAttachment(lblSSMC1, 0, SWT.TOP);
		fd_txtSSMC1.left = new FormAttachment(lblSSMC1, 6);
		txtSSMC1.setLayoutData(fd_txtSSMC1);

		Label lblSSSJJ2 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblSSSJJ2") , SWT.NONE);//"2) 时间："
		FormData fd_lblSSSJJ2 = new FormData();
		fd_lblSSSJJ2.left = new FormAttachment(lblSSSJJ1, 0, SWT.LEFT);
		fd_lblSSSJJ2.top = new FormAttachment(lblSSSJJ1, row_space, SWT.BOTTOM);
		lblSSSJJ2.setLayoutData(fd_lblSSSJJ2);

		dtSSSJ2 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtSSSJ2 = new FormData();
		fd_dtSSSJ2.bottom = new FormAttachment(lblSSSJJ2, 4, SWT.BOTTOM);
		fd_dtSSSJ2.top = new FormAttachment(lblSSSJJ2, -4, SWT.TOP);
		fd_dtSSSJ2.left = new FormAttachment(lblSSSJJ2, 5);
		dtSSSJ2.setLayoutData(fd_dtSSSJ2);
		toolkit.adapt(dtSSSJ2);
		toolkit.paintBordersFor(dtSSSJ2);

		Label lblSSMC2 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblSSMC2") , SWT.NONE);//"名称："
		FormData fd_lblSSMC2 = new FormData();
		fd_lblSSMC2.left = new FormAttachment(dtSSSJ2, 8);
		fd_lblSSMC2.top = new FormAttachment(lblSSSJJ2, 0, SWT.TOP);
		lblSSMC2.setLayoutData(fd_lblSSMC2);

		txtSSMC2 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtSSMC2.setText("");
		FormData fd_txtSSMC2 = new FormData();
		fd_txtSSMC2.right = new FormAttachment(96, -5);
		fd_txtSSMC2.top = new FormAttachment(lblSSMC2, 0, SWT.TOP);
		fd_txtSSMC2.left = new FormAttachment(txtSSMC1, 0, SWT.LEFT);
		txtSSMC2.setLayoutData(fd_txtSSMC2);

		// 外伤
		Label lblWS = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblWS") , SWT.NONE);//"外伤"
		lblWS.setFont(RcpResourceManager.getFont("宋体", 9, SWT.BOLD));
		FormData fd_lblWS = new FormData();
		fd_lblWS.left = new FormAttachment(lblSS, 0, SWT.LEFT);
		fd_lblWS.top = new FormAttachment(lblSSMC2, 14+row_space, SWT.BOTTOM);
		lblWS.setLayoutData(fd_lblWS);

		Label lblWSYW = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblWSYW") , SWT.NONE);//"有/无："
		FormData fd_lblWSYW = new FormData();
		// fd_lblSSYW.left = new FormAttachment(lblQZSJ4, 0, SWT.LEFT);
		fd_lblWSYW.top = new FormAttachment(lblWS, 0, SWT.TOP);// lblZGQK
		fd_lblWSYW.right = new FormAttachment(lblSSYW, 0, SWT.RIGHT);
		lblWSYW.setLayoutData(fd_lblWSYW);

		comboWS = new Combo(compOldTimey, SWT.NONE);
		// comboWS.setItems(new String[] {"有", "无"});
		FormData fd_comboWS = new FormData();
		fd_comboWS.top = new FormAttachment(lblWSYW, -2, SWT.TOP);
		fd_comboWS.left = new FormAttachment(comboSS, 0, SWT.LEFT);
		comboWS.setLayoutData(fd_comboWS);
		toolkit.adapt(comboWS);
		toolkit.paintBordersFor(comboWS);

		Label lblWSSJJ1 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblWSSJJ1") , SWT.NONE);//"1) 时间："
		FormData fd_lblWSSJJ1 = new FormData();
		fd_lblWSSJJ1.left = new FormAttachment(comboWS, 8);
		fd_lblWSSJJ1.top = new FormAttachment(comboWS, 0, SWT.TOP);
		lblWSSJJ1.setLayoutData(fd_lblWSSJJ1);

		dtWSSJ1 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtWSSJ1 = new FormData();
		fd_dtWSSJ1.bottom = new FormAttachment(comboWS, 0, SWT.BOTTOM);
		fd_dtWSSJ1.top = new FormAttachment(comboWS, 0, SWT.TOP);
		fd_dtWSSJ1.left = new FormAttachment(lblWSSJJ1, 5);
		dtWSSJ1.setLayoutData(fd_dtWSSJ1);
		toolkit.adapt(dtWSSJ1);
		toolkit.paintBordersFor(dtWSSJ1);

		Label lblWSMC1 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblWSMC1") , SWT.NONE);//"名称："
		FormData fd_lblWSMC1 = new FormData();
		fd_lblWSMC1.left = new FormAttachment(dtWSSJ1, 8);
		fd_lblWSMC1.top = new FormAttachment(comboWS, 2, SWT.TOP);
		lblWSMC1.setLayoutData(fd_lblWSMC1);

		txtWSMC1 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtWSMC1.setText("");
		FormData fd_txtWSMC1 = new FormData();
		fd_txtWSMC1.right = new FormAttachment(96, -5);
		fd_txtWSMC1.top = new FormAttachment(lblWSMC1, 0, SWT.TOP);
		fd_txtWSMC1.left = new FormAttachment(lblWSMC1, 6);
		txtWSMC1.setLayoutData(fd_txtWSMC1);

		Label lblWSSJJ2 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblWSSJJ2") , SWT.NONE);//"2) 时间："
		FormData fd_lblWSSJJ2 = new FormData();
		fd_lblWSSJJ2.left = new FormAttachment(lblWSSJJ1, 0, SWT.LEFT);
		fd_lblWSSJJ2.top = new FormAttachment(lblWSSJJ1, row_space, SWT.BOTTOM);

		lblWSSJJ2.setLayoutData(fd_lblWSSJJ2);

		dtWSSJ2 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtWSSJ2 = new FormData();
		fd_dtWSSJ2.bottom = new FormAttachment(lblWSSJJ2, 4, SWT.BOTTOM);
		fd_dtWSSJ2.top = new FormAttachment(lblWSSJJ2, -4, SWT.TOP);
		fd_dtWSSJ2.left = new FormAttachment(lblWSSJJ2, 5);
		dtWSSJ2.setLayoutData(fd_dtWSSJ2);
		toolkit.adapt(dtWSSJ2);
		toolkit.paintBordersFor(dtWSSJ2);

		Label lblWSMC2 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblWSMC2") , SWT.NONE);//"名称："
		FormData fd_lblWSMC2 = new FormData();
		fd_lblWSMC2.left = new FormAttachment(lblWSMC1, 0, SWT.LEFT);
		fd_lblWSMC2.top = new FormAttachment(lblWSSJJ2, 0, SWT.TOP);
		lblWSMC2.setLayoutData(fd_lblWSMC2);

		txtWSMC2 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtWSMC2.setText("");
		FormData fd_txtWSMC2 = new FormData();
		fd_txtWSMC2.right = new FormAttachment(96, -5);
		fd_txtWSMC2.top = new FormAttachment(lblWSMC2, 0, SWT.TOP);
		fd_txtWSMC2.left = new FormAttachment(lblWSMC2, 6);
		txtWSMC2.setLayoutData(fd_txtWSMC2);

		// 输血

		Label lblSX = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblSX") , SWT.NONE);//"输血"
		lblSX.setFont(RcpResourceManager.getFont("宋体", 9, SWT.BOLD));
		lblWS.setFont(RcpResourceManager.getFont("宋体", 9, SWT.BOLD));
		FormData fd_lblSX = new FormData();
		fd_lblSX.left = new FormAttachment(lblWS, 0, SWT.LEFT);
		fd_lblSX.top = new FormAttachment(lblWSMC2, row_space+16, SWT.BOTTOM);
		lblSX.setLayoutData(fd_lblSX);

		Label lblSXYW = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblSXYW") , SWT.NONE);//"有/无："
		FormData fd_lblSXYW = new FormData();
		fd_lblSXYW.top = new FormAttachment(lblSX, 0, SWT.TOP);// lblZGQK
		fd_lblSXYW.right = new FormAttachment(lblWSYW, 0, SWT.RIGHT);
		lblSXYW.setLayoutData(fd_lblSXYW);

		comboSX = new Combo(compOldTimey, SWT.NONE);
		// comboSX.setItems(new String[] {"有", "无"});
		FormData fd_comboSX = new FormData();
		fd_comboSX.top = new FormAttachment(lblSXYW, -2, SWT.TOP);
		fd_comboSX.left = new FormAttachment(comboWS, 0, SWT.LEFT);
		comboSX.setLayoutData(fd_comboSX);
		toolkit.adapt(comboSX);
		toolkit.paintBordersFor(comboSX);

		Label lblSXSJJ1 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblSXSJJ1") , SWT.NONE);//"1) 时间："
		FormData fd_lblSXSJJ1 = new FormData();
		fd_lblSXSJJ1.left = new FormAttachment(comboSX, 8);
		fd_lblSXSJJ1.top = new FormAttachment(comboSX, 2, SWT.TOP);
		lblSXSJJ1.setLayoutData(fd_lblSXSJJ1);

		dtSXSJ1 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtSXSJ1 = new FormData();
		fd_dtSXSJ1.bottom = new FormAttachment(comboSX, 0, SWT.BOTTOM);
		fd_dtSXSJ1.top = new FormAttachment(comboSX, 0, SWT.TOP);
		fd_dtSXSJ1.left = new FormAttachment(lblSXSJJ1, 5);
		dtSXSJ1.setLayoutData(fd_dtSXSJ1);
		toolkit.adapt(dtSXSJ1);
		toolkit.paintBordersFor(dtSXSJ1);

		Label lblSXYY1 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblSXYY1") , SWT.NONE);//"原因："
		FormData fd_lblSXYY1 = new FormData();
		fd_lblSXYY1.left = new FormAttachment(dtSXSJ1, 8);
		fd_lblSXYY1.top = new FormAttachment(dtSXSJ1, 2, SWT.TOP);
		lblSXYY1.setLayoutData(fd_lblSXYY1);

		txtSXYY1 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtSXYY1.setText("");
		FormData fd_txtSXYY1 = new FormData();
		fd_txtSXYY1.right = new FormAttachment(96, -5);
		fd_txtSXYY1.top = new FormAttachment(lblSXYY1, 0, SWT.TOP);
		fd_txtSXYY1.left = new FormAttachment(lblSXYY1, 6);
		txtSXYY1.setLayoutData(fd_txtSXYY1);

		Label lblSXSJJ2 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblSXSJJ2") , SWT.NONE);//"2) 时间："
		FormData fd_lblSXSJJ2 = new FormData();
		fd_lblSXSJJ2.left = new FormAttachment(lblSXSJJ1, 0, SWT.LEFT);
		fd_lblSXSJJ2.top = new FormAttachment(lblSXSJJ1, row_space);
		lblSXSJJ2.setLayoutData(fd_lblSXSJJ2);

		dtSXSJ2 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtSXSJ2 = new FormData();
		fd_dtSXSJ2.bottom = new FormAttachment(lblSXSJJ2, 4, SWT.BOTTOM);
		fd_dtSXSJ2.top = new FormAttachment(lblSXSJJ2, -4, SWT.TOP);
		fd_dtSXSJ2.left = new FormAttachment(lblSXSJJ2, 5);
		dtSXSJ2.setLayoutData(fd_dtSXSJ2);
		toolkit.adapt(dtSXSJ2);
		toolkit.paintBordersFor(dtSXSJ2);

		Label lblSXYY2 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblSXYY2") , SWT.NONE);//"原因："
		FormData fd_lblSXYY2 = new FormData();
		fd_lblSXYY2.left = new FormAttachment(dtSXSJ2, 8);
		fd_lblSXYY2.top = new FormAttachment(dtSXSJ2, 2, SWT.TOP);
		lblSXYY2.setLayoutData(fd_lblSXYY2);

		txtSXYY2 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtSXYY2.setText("");
		FormData fd_txtSXYY2 = new FormData();
		fd_txtSXYY2.right = new FormAttachment(96, -5);
		fd_txtSXYY2.top = new FormAttachment(lblSXYY2, 0, SWT.TOP);
		fd_txtSXYY2.left = new FormAttachment(lblSXYY2, 6);
		txtSXYY2.setLayoutData(fd_txtSXYY2);

		// 住院

		Label lblZY = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblZY") , SWT.NONE);//"住院"
		lblZY.setFont(RcpResourceManager.getFont("宋体", 9, SWT.BOLD));

		FormData fd_lblZY = new FormData();
		fd_lblZY.left = new FormAttachment(lblSX, 0, SWT.LEFT);
		fd_lblZY.top = new FormAttachment(lblSXYY2, row_space+16);
		lblZY.setLayoutData(fd_lblZY);

		Label lblZYYW = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblZYYW") , SWT.NONE);//"有/无："
		FormData fd_lblZYYW = new FormData();
		fd_lblZYYW.top = new FormAttachment(lblZY, 0, SWT.TOP);// lblZGQK
		fd_lblZYYW.right = new FormAttachment(lblSXYW, 0, SWT.RIGHT);
		lblZYYW.setLayoutData(fd_lblZYYW);

		comboZY = new Combo(compOldTimey, SWT.NONE);
		// comboZY.setItems(new String[] {"有", "无"});
		FormData fd_comboZY = new FormData();
		fd_comboZY.top = new FormAttachment(lblZYYW, -2, SWT.TOP);
		fd_comboZY.left = new FormAttachment(comboSX, 0, SWT.LEFT);
		comboZY.setLayoutData(fd_comboZY);
		toolkit.adapt(comboZY);
		toolkit.paintBordersFor(comboZY);

		Label lblZYYY1 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblZYYY1") , SWT.NONE);//"1) 原因："
		FormData fd_lblZYYY1 = new FormData();
		fd_lblZYYY1.left = new FormAttachment(comboZY, 8);
		fd_lblZYYY1.top = new FormAttachment(comboZY, 2, SWT.TOP);
		lblZYYY1.setLayoutData(fd_lblZYYY1);

		txtZYYY1 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtZYYY1.setText("");
		FormData fd_txtZYYY1 = new FormData();
		fd_txtZYYY1.right = new FormAttachment(lblZYYY1, 185, SWT.RIGHT);
		fd_txtZYYY1.top = new FormAttachment(lblZYYY1, 0, SWT.TOP);
		fd_txtZYYY1.left = new FormAttachment(lblZYYY1, 6);
		txtZYYY1.setLayoutData(fd_txtZYYY1);

		Label lblRCYSJJ1 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblRCYSJJ1") , SWT.NONE);//"入/出院时间："
		FormData fd_lblRCYSJJ1 = new FormData();
		fd_lblRCYSJJ1.left = new FormAttachment(txtZYYY1, 8);
		fd_lblRCYSJJ1.top = new FormAttachment(txtZYYY1, 0, SWT.TOP);
		lblRCYSJJ1.setLayoutData(fd_lblRCYSJJ1);

		dtRYSJ1 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtRYSJ1 = new FormData();
		fd_dtRYSJ1.bottom = new FormAttachment(comboZY, 0, SWT.BOTTOM);
		fd_dtRYSJ1.top = new FormAttachment(comboZY, 0, SWT.TOP);
		fd_dtRYSJ1.left = new FormAttachment(lblRCYSJJ1, 5);
		dtRYSJ1.setLayoutData(fd_dtRYSJ1);
		toolkit.adapt(dtRYSJ1);
		toolkit.paintBordersFor(dtRYSJ1);

		Label lblTo1 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblTo1") , SWT.NONE);//"/"
		FormData fd_lblTo1 = new FormData();
		fd_lblTo1.left = new FormAttachment(dtRYSJ1, 1);
		fd_lblTo1.top = new FormAttachment(lblRCYSJJ1, 0, SWT.TOP);
		lblTo1.setLayoutData(fd_lblTo1);

		dtCYSJ1 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtCYSJ1 = new FormData();
		fd_dtCYSJ1.bottom = new FormAttachment(comboZY, 0, SWT.BOTTOM);
		fd_dtCYSJ1.top = new FormAttachment(comboZY, 0, SWT.TOP);
		fd_dtCYSJ1.left = new FormAttachment(lblTo1, 1);
		dtCYSJ1.setLayoutData(fd_dtCYSJ1);
		toolkit.adapt(dtCYSJ1);
		toolkit.paintBordersFor(dtCYSJ1);

		Label lblYLJGMC1 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblYLJGMC1") , SWT.NONE);//"医疗机构名称："
		FormData fd_lblYLJGMC1 = new FormData();
		fd_lblYLJGMC1.top = new FormAttachment(lblZY, 0, SWT.TOP);
		fd_lblYLJGMC1.left = new FormAttachment(dtCYSJ1, 6);
		lblYLJGMC1.setLayoutData(fd_lblYLJGMC1);

		txtYLJGMC1 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtYLJGMC1.setText("");
		FormData fd_txtYLJGMC1 = new FormData();
		fd_txtYLJGMC1.bottom = new FormAttachment(lblZY, 0, SWT.BOTTOM);
		fd_txtYLJGMC1.left = new FormAttachment(lblYLJGMC1, 6);
		fd_txtYLJGMC1.right = new FormAttachment(96, -6);
		txtYLJGMC1.setLayoutData(fd_txtYLJGMC1);

		Label lblZYYY2 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblZYYY2") , SWT.NONE);//"2) 原因："
		FormData fd_lblZYYY2 = new FormData();
		fd_lblZYYY2.left = new FormAttachment(comboZY, 8);
		fd_lblZYYY2.top = new FormAttachment(lblZYYY1, row_space, SWT.BOTTOM);
		lblZYYY2.setLayoutData(fd_lblZYYY2);

		txtZYYY2 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtZYYY2.setText("");
		FormData fd_txtZYYY2 = new FormData();
		fd_txtZYYY2.right = new FormAttachment(lblZYYY2, 185, SWT.RIGHT);
		fd_txtZYYY2.top = new FormAttachment(lblZYYY2, 0, SWT.TOP);
		fd_txtZYYY2.left = new FormAttachment(lblZYYY2, 6);
		txtZYYY2.setLayoutData(fd_txtZYYY2);

		Label lblRCYSJJ2 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblRCYSJJ2") , SWT.NONE);//"入/出院时间："
		FormData fd_lblRCYSJJ2 = new FormData();
		fd_lblRCYSJJ2.left = new FormAttachment(txtZYYY2, 8);
		fd_lblRCYSJJ2.top = new FormAttachment(txtZYYY2, 0, SWT.TOP);
		lblRCYSJJ2.setLayoutData(fd_lblRCYSJJ2);

		dtRYSJ2 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtRYSJ2 = new FormData();
		fd_dtRYSJ2.bottom = new FormAttachment(lblRCYSJJ2, 4, SWT.BOTTOM);
		fd_dtRYSJ2.top = new FormAttachment(lblRCYSJJ2, -4, SWT.TOP);
		fd_dtRYSJ2.left = new FormAttachment(lblRCYSJJ2, 5);
		dtRYSJ2.setLayoutData(fd_dtRYSJ2);
		toolkit.adapt(dtRYSJ1);
		toolkit.paintBordersFor(dtRYSJ2);

		Label lblTo2 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblTo2") , SWT.NONE);//"/"
		FormData fd_lblTo2 = new FormData();
		fd_lblTo2.left = new FormAttachment(dtRYSJ2, 1);
		fd_lblTo2.top = new FormAttachment(lblRCYSJJ2, 0, SWT.TOP);
		lblTo2.setLayoutData(fd_lblTo2);

		dtCYSJ2 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtCYSJ2 = new FormData();
		fd_dtCYSJ2.bottom = new FormAttachment(dtRYSJ2, 0, SWT.BOTTOM);
		fd_dtCYSJ2.top = new FormAttachment(dtRYSJ2, 0, SWT.TOP);
		fd_dtCYSJ2.top = new FormAttachment(dtRYSJ2, 0, SWT.TOP);
		fd_dtCYSJ2.left = new FormAttachment(lblTo2, 1);
		dtCYSJ2.setLayoutData(fd_dtCYSJ2);
		toolkit.adapt(dtCYSJ2);
		toolkit.paintBordersFor(dtCYSJ2);

		Label lblYLJGMC2 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblYLJGMC2") , SWT.NONE);//"医疗机构名称："
		FormData fd_lblYLJGMC2 = new FormData();
		fd_lblYLJGMC2.top = new FormAttachment(lblTo2, 0, SWT.TOP);
		fd_lblYLJGMC2.left = new FormAttachment(dtCYSJ2, 6);
		lblYLJGMC2.setLayoutData(fd_lblYLJGMC2);

		txtYLJGMC2 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtYLJGMC2.setText("");
		FormData fd_txtYLJGMC2 = new FormData();
		fd_txtYLJGMC2.bottom = new FormAttachment(lblTo2, 0, SWT.BOTTOM);
		fd_txtYLJGMC2.left = new FormAttachment(lblYLJGMC2, 6);
		fd_txtYLJGMC2.right = new FormAttachment(96, -6);
		txtYLJGMC2.setLayoutData(fd_txtYLJGMC2);

		Label lblZYYY3 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblZYYY3") , SWT.NONE);//"3) 原因："
		FormData fd_lblZYYY3 = new FormData();
		fd_lblZYYY3.left = new FormAttachment(comboZY, 8);
		fd_lblZYYY3.top = new FormAttachment(lblZYYY2, row_space, SWT.BOTTOM);
		lblZYYY3.setLayoutData(fd_lblZYYY3);

		txtZYYY3 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtZYYY3.setText("");
		FormData fd_txtZYYY3 = new FormData();
		fd_txtZYYY3.right = new FormAttachment(lblZYYY3, 185, SWT.RIGHT);
		fd_txtZYYY3.top = new FormAttachment(lblZYYY3, 0, SWT.TOP);
		fd_txtZYYY3.left = new FormAttachment(lblZYYY3, 6);
		txtZYYY3.setLayoutData(fd_txtZYYY3);

		Label lblRCYSJJ3 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblRCYSJJ3") , SWT.NONE);//"入/出院时间："
		FormData fd_lblRCYSJJ3 = new FormData();
		fd_lblRCYSJJ3.left = new FormAttachment(txtZYYY3, 8);
		fd_lblRCYSJJ3.top = new FormAttachment(txtZYYY3, 0, SWT.TOP);
		lblRCYSJJ3.setLayoutData(fd_lblRCYSJJ3);

		dtRYSJ3 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtRYSJ3 = new FormData();
		fd_dtRYSJ3.bottom = new FormAttachment(lblRCYSJJ3, 4, SWT.BOTTOM);
		fd_dtRYSJ3.top = new FormAttachment(lblRCYSJJ3, -4, SWT.TOP);
		fd_dtRYSJ3.left = new FormAttachment(lblRCYSJJ3, 5);
		dtRYSJ3.setLayoutData(fd_dtRYSJ3);
		toolkit.adapt(dtRYSJ3);
		toolkit.paintBordersFor(dtRYSJ3);

		Label lblTo3 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblTo3") , SWT.NONE);//"/"
		FormData fd_lblTo3 = new FormData();
		fd_lblTo3.left = new FormAttachment(dtRYSJ3, 1);
		fd_lblTo3.top = new FormAttachment(lblRCYSJJ3, 0, SWT.TOP);
		lblTo3.setLayoutData(fd_lblTo3);

		dtCYSJ3 = new DateTime(compOldTimey, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtCYSJ3 = new FormData();
		fd_dtCYSJ3.bottom = new FormAttachment(dtRYSJ3, 0, SWT.BOTTOM);
		fd_dtCYSJ3.top = new FormAttachment(dtRYSJ3, 0, SWT.TOP);
		fd_dtCYSJ3.left = new FormAttachment(lblTo3, 1);
		dtCYSJ3.setLayoutData(fd_dtCYSJ3);
		toolkit.adapt(dtCYSJ3);
		toolkit.paintBordersFor(dtCYSJ3);

		Label lblYLJGMC3 = toolkit.createLabel(compOldTimey,Messages.getString("PersonBaseInfoUI.lblYLJGMC3") , SWT.NONE);//"医疗机构名称："
		FormData fd_lblYLJGMC3 = new FormData();
		fd_lblYLJGMC3.top = new FormAttachment(lblTo3, 0, SWT.TOP);
		fd_lblYLJGMC3.left = new FormAttachment(dtCYSJ3, 6);
		lblYLJGMC3.setLayoutData(fd_lblYLJGMC3);

		txtYLJGMC3 = toolkit.createText(compOldTimey, "New Text", SWT.NONE);
		txtYLJGMC3.setText("");
		FormData fd_txtYLJGMC3 = new FormData();
		fd_txtYLJGMC3.bottom = new FormAttachment(lblTo3, 0, SWT.BOTTOM);
		fd_txtYLJGMC3.left = new FormAttachment(lblYLJGMC3, 6);
		fd_txtYLJGMC3.right = new FormAttachment(96, -6);
		txtYLJGMC3.setLayoutData(fd_txtYLJGMC3);

		// 女性
		sectWoman = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);

		FormData fd_sectWoman = new FormData();

		fd_sectWoman.right = new FormAttachment(100, -15);
		fd_sectWoman.top = new FormAttachment(sectOldTimey, 10, SWT.BOTTOM);
		fd_sectWoman.left = new FormAttachment(0, 15);
		sectWoman.setLayoutData(fd_sectWoman);

		toolkit.paintBordersFor(sectWoman);
		sectWoman.setText(Messages.getString("PersonBaseInfoUI.sectWoman"));//"女性"
		sectWoman.setExpanded(true);

		Composite compWoman = toolkit.createComposite(sectWoman, SWT.NONE);
		toolkit.paintBordersFor(compWoman);
		sectWoman.setClient(compWoman);
		compWoman.setLayout(new FormLayout());

		// 女性月经史
		Label lblNXYJS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXYJS"), SWT.NONE);// "月经史",
		lblNXYJS.setFont(RcpResourceManager.getFont("宋体", 9, SWT.BOLD));
		{
			FormData fd_lblNXYJS = new FormData();
			fd_lblNXYJS.top = new FormAttachment(12);
			fd_lblNXYJS.left = new FormAttachment(4, 10);
			lblNXYJS.setLayoutData(fd_lblNXYJS);
		}

		Label lblCCNL = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblCCNL") , SWT.NONE);//"初潮年龄："
		FormData fd_lblCCNL = new FormData();
		fd_lblCCNL.top = new FormAttachment(lblNXYJS, 0, SWT.TOP);
		fd_lblCCNL.left = new FormAttachment(lblNXYJS, 6);
		lblCCNL.setLayoutData(fd_lblCCNL);

		txtNXCCNL = toolkit.createText(compWoman, "", SWT.NONE);
		FormData fd_txtNXCCNL = new FormData();
		fd_txtNXCCNL.top = new FormAttachment(lblCCNL, 0, SWT.TOP);
		fd_txtNXCCNL.left = new FormAttachment(lblCCNL, 6);
		fd_txtNXCCNL.right = new FormAttachment(lblCCNL, 86, SWT.RIGHT);
		txtNXCCNL.setLayoutData(fd_txtNXCCNL);

		Label lblCCNLS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblCCNLS") , SWT.NONE);//"岁"
		FormData fd_lblCCNLS = new FormData();
		fd_lblCCNLS.top = new FormAttachment(txtNXCCNL, 0, SWT.TOP);
		fd_lblCCNLS.left = new FormAttachment(txtNXCCNL, 2);
		lblCCNLS.setLayoutData(fd_lblCCNLS);

		Label lblYJZQ = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblYJZQ") , SWT.NONE);//"月经周期："
		FormData fd_lblYJZQ = new FormData();
		fd_lblYJZQ.top = new FormAttachment(lblCCNLS, 0, SWT.TOP);
		fd_lblYJZQ.left = new FormAttachment(lblCCNLS, 8);
		lblYJZQ.setLayoutData(fd_lblYJZQ);

		txtYJZQ = toolkit.createText(compWoman, "", SWT.NONE);
		FormData fd_txtYJZQ = new FormData();
		fd_txtYJZQ.top = new FormAttachment(lblYJZQ, 0, SWT.TOP);
		fd_txtYJZQ.left = new FormAttachment(lblYJZQ, 6);
		fd_txtYJZQ.right = new FormAttachment(lblYJZQ, 86, SWT.RIGHT);
		txtYJZQ.setLayoutData(fd_txtYJZQ);

		Label lblYJZQT = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblYJZQT") , SWT.NONE);//"天"
		FormData fd_lblYJZQT = new FormData();
		fd_lblYJZQT.top = new FormAttachment(txtYJZQ, 0, SWT.TOP);
		fd_lblYJZQT.left = new FormAttachment(txtYJZQ, 2);
		lblYJZQT.setLayoutData(fd_lblYJZQT);

		Label lblXJTS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblXJTS") , SWT.NONE);//"行经天数："
		FormData fd_lblXJTS = new FormData();
		fd_lblXJTS.top = new FormAttachment(lblYJZQT, 0, SWT.TOP);
		fd_lblXJTS.left = new FormAttachment(lblYJZQT, 8);
		lblXJTS.setLayoutData(fd_lblXJTS);

		txtXJTS = toolkit.createText(compWoman, "", SWT.NONE);
		FormData fd_txtXJTS = new FormData();
		fd_txtXJTS.top = new FormAttachment(lblXJTS, 0, SWT.TOP);
		fd_txtXJTS.left = new FormAttachment(lblXJTS, 6);
		fd_txtXJTS.right = new FormAttachment(lblXJTS, 86, SWT.RIGHT);
		txtXJTS.setLayoutData(fd_txtXJTS);

		Label lblXJTST = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblXJTST") , SWT.NONE);//"天"
		FormData fd_lblXJTST = new FormData();
		fd_lblXJTST.top = new FormAttachment(txtXJTS, 0, SWT.TOP);
		fd_lblXJTST.left = new FormAttachment(txtXJTS, 2);
		lblXJTST.setLayoutData(fd_lblXJTST);

		Label lblNXJJ1 = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXJJ1") , SWT.NONE);//"绝经："
		FormData fd_lblNXJJ1 = new FormData();
		fd_lblNXJJ1.top = new FormAttachment(lblXJTST, 0, SWT.TOP);
		fd_lblNXJJ1.left = new FormAttachment(lblXJTST, 8);
		lblNXJJ1.setLayoutData(fd_lblNXJJ1);

		cmbNXJJ = new Combo(compWoman, SWT.READ_ONLY);
		// cmbNXJJ.setItems(new String[] { "否", "是" });
		FormData fd_cmbNXJJ = new FormData();
		fd_cmbNXJJ.top = new FormAttachment(lblNXJJ1, -4, SWT.TOP);
		fd_cmbNXJJ.bottom = new FormAttachment(lblNXJJ1, 4, SWT.BOTTOM);
		fd_cmbNXJJ.left = new FormAttachment(lblNXJJ1, 6);
		cmbNXJJ.setLayoutData(fd_cmbNXJJ);
		toolkit.adapt(cmbNXJJ, true, true);

		Label lblNXJJ = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXJJ") , SWT.NONE);//"绝经年龄："
		FormData fd_lblNXJJ = new FormData();
		fd_lblNXJJ.top = new FormAttachment(lblXJTST, 0, SWT.TOP);
		fd_lblNXJJ.left = new FormAttachment(cmbNXJJ, 8);
		lblNXJJ.setLayoutData(fd_lblNXJJ);

		txtNXJJNL = toolkit.createText(compWoman, "", SWT.NONE);
		FormData fd_txtNXJJNL = new FormData();
		fd_txtNXJJNL.top = new FormAttachment(lblNXJJ, 0, SWT.TOP);
		fd_txtNXJJNL.left = new FormAttachment(lblNXJJ, 6);
		fd_txtNXJJNL.right = new FormAttachment(lblNXJJ, 86, SWT.RIGHT);
		txtNXJJNL.setLayoutData(fd_txtNXJJNL);

		Label lblNXJJS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXJJS") , SWT.NONE);//"岁"
		FormData fd_lblNXJJS = new FormData();
		fd_lblNXJJS.top = new FormAttachment(txtNXJJNL, 0, SWT.TOP);
		fd_lblNXJJS.left = new FormAttachment(txtNXJJNL, 2);
		lblNXJJS.setLayoutData(fd_lblNXJJS);

		// 女性生育史
		Label lblNXSYS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXSYS") , SWT.NONE);//"生育史"
		lblNXSYS.setFont(RcpResourceManager.getFont("宋体", 9, SWT.BOLD));
		{
			FormData fd_lblNXSYS = new FormData();
			fd_lblNXSYS.top = new FormAttachment(lblNXYJS, row_space);
			fd_lblNXSYS.left = new FormAttachment(lblNXYJS, 0, SWT.LEFT);
			lblNXSYS.setLayoutData(fd_lblNXSYS);
		}
		Label lblBYFS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblBYFS") , SWT.NONE);//"避孕方式："
		FormData fd_lblBYFS = new FormData();
		fd_lblBYFS.top = new FormAttachment(lblNXSYS, 0, SWT.TOP);
		fd_lblBYFS.left = new FormAttachment(lblNXSYS, 6);
		lblBYFS.setLayoutData(fd_lblBYFS);

		cmbNXBBFY = new Combo(compWoman, SWT.READ_ONLY);
		// cmbNXBBFY.setItems(new String[] { "无", "避孕药", "避孕环", "工具", "安全期",
		// "绝育手术" });
		FormData fd_cmbNXBBFY = new FormData();
		fd_cmbNXBBFY.top = new FormAttachment(lblBYFS, -4, SWT.TOP);
		fd_cmbNXBBFY.bottom = new FormAttachment(lblBYFS, 4, SWT.BOTTOM);
		fd_cmbNXBBFY.left = new FormAttachment(lblBYFS, 6);
		cmbNXBBFY.setLayoutData(fd_cmbNXBBFY);
		toolkit.adapt(cmbNXBBFY, true, true);

		Label lblNXRCCS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXRCCS") , SWT.NONE);//"妊娠次数："
		FormData fd_lblNXRCCS = new FormData();
		fd_lblNXRCCS.top = new FormAttachment(lblBYFS, 0, SWT.TOP);
		fd_lblNXRCCS.left = new FormAttachment(cmbNXBBFY, 8);
		lblNXRCCS.setLayoutData(fd_lblNXRCCS);

		txtNXRCCS = toolkit.createText(compWoman, "", SWT.NONE);
		FormData fd_txtNXRCCS = new FormData();
		fd_txtNXRCCS.top = new FormAttachment(lblNXRCCS, 0, SWT.TOP);
		fd_txtNXRCCS.left = new FormAttachment(lblNXRCCS, 6);
		fd_txtNXRCCS.right = new FormAttachment(lblNXRCCS, 86, SWT.RIGHT);
		txtNXRCCS.setLayoutData(fd_txtNXRCCS);

		Label lblNXSYCS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXSYCS") , SWT.NONE);//"生育次数："
		FormData fd_lblNXSYCS = new FormData();
		fd_lblNXSYCS.top = new FormAttachment(txtNXRCCS, 0, SWT.TOP);
		fd_lblNXSYCS.left = new FormAttachment(txtNXRCCS, 10);
		lblNXSYCS.setLayoutData(fd_lblNXSYCS);

		txtNXSYCS = toolkit.createText(compWoman, "", SWT.NONE);
		FormData fd_txtNXSYCS = new FormData();
		fd_txtNXSYCS.top = new FormAttachment(lblNXSYCS, 0, SWT.TOP);
		fd_txtNXSYCS.left = new FormAttachment(lblNXSYCS, 6);
		fd_txtNXSYCS.right = new FormAttachment(lblNXSYCS, 86, SWT.RIGHT);
		txtNXSYCS.setLayoutData(fd_txtNXSYCS);

		Label lblNXPGCCS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXPGCCS") , SWT.NONE);//"剖宫产次数："
		FormData fd_lblNXPGCCS = new FormData();
		fd_lblNXPGCCS.top = new FormAttachment(txtNXSYCS, 0, SWT.TOP);
		fd_lblNXPGCCS.left = new FormAttachment(txtNXSYCS, 10);
		lblNXPGCCS.setLayoutData(fd_lblNXPGCCS);

		txtNXPGCCS = toolkit.createText(compWoman, "", SWT.NONE);
		FormData fd_txtNXPGCCS = new FormData();
		fd_txtNXPGCCS.top = new FormAttachment(lblNXPGCCS, 0, SWT.TOP);
		fd_txtNXPGCCS.left = new FormAttachment(lblNXPGCCS, 6);
		fd_txtNXPGCCS.right = new FormAttachment(lblNXPGCCS, 86, SWT.RIGHT);
		txtNXPGCCS.setLayoutData(fd_txtNXPGCCS);

		Label lblNXLCCS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXLCCS") , SWT.NONE);//"流产次数"
		FormData fd_lblNXLCCS = new FormData();
		fd_lblNXLCCS.top = new FormAttachment(lblBYFS, row_space);
		fd_lblNXLCCS.left = new FormAttachment(lblBYFS, 0, SWT.LEFT);
		fd_lblNXLCCS.bottom = new FormAttachment(100, -4);
		lblNXLCCS.setLayoutData(fd_lblNXLCCS);

		Label lblNXZRLCCS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXZRLCCS") , SWT.NONE);//"自然流产次数："
		FormData fd_lblNXZRLCCS = new FormData();
		fd_lblNXZRLCCS.top = new FormAttachment(lblNXLCCS, 0, SWT.TOP);
		fd_lblNXZRLCCS.left = new FormAttachment(lblNXLCCS, 14);
		lblNXZRLCCS.setLayoutData(fd_lblNXZRLCCS);

		txtNXZRLCCS = toolkit.createText(compWoman, "", SWT.NONE);
		FormData fd_txtNXZRLCCS = new FormData();
		fd_txtNXZRLCCS.top = new FormAttachment(lblNXZRLCCS, 0, SWT.TOP);
		fd_txtNXZRLCCS.left = new FormAttachment(lblNXZRLCCS, 6);
		fd_txtNXZRLCCS.right = new FormAttachment(lblNXZRLCCS, 86, SWT.RIGHT);
		txtNXZRLCCS.setLayoutData(fd_txtNXZRLCCS);

		Label lblNXZRLCCSC = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXZRLCCSC") , SWT.NONE);//"次"
		FormData fd_lblNXZRLCCSC = new FormData();
		fd_lblNXZRLCCSC.top = new FormAttachment(txtNXZRLCCS, 0, SWT.TOP);
		fd_lblNXZRLCCSC.left = new FormAttachment(txtNXZRLCCS, 2);
		lblNXZRLCCSC.setLayoutData(fd_lblNXZRLCCSC);

		Label lblNXRGLCCS = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXRGLCCS") , SWT.NONE);//"人工流产次数："
		FormData fd_lblNXRGLCCS = new FormData();
		fd_lblNXRGLCCS.top = new FormAttachment(lblNXZRLCCSC, 0, SWT.TOP);
		fd_lblNXRGLCCS.left = new FormAttachment(lblNXZRLCCSC, 8);
		lblNXRGLCCS.setLayoutData(fd_lblNXRGLCCS);

		txtNXRGLCCS = toolkit.createText(compWoman, "", SWT.NONE);
		FormData fd_txtNXRGLCCS = new FormData();
		fd_txtNXRGLCCS.top = new FormAttachment(lblNXRGLCCS, 0, SWT.TOP);
		fd_txtNXRGLCCS.left = new FormAttachment(lblNXRGLCCS, 6);
		fd_txtNXRGLCCS.right = new FormAttachment(lblNXRGLCCS, 86, SWT.RIGHT);
		txtNXRGLCCS.setLayoutData(fd_txtNXRGLCCS);

		Label lblNXRGLCCSC = toolkit.createLabel(compWoman,Messages.getString("PersonBaseInfoUI.lblNXRGLCCSC") , SWT.NONE);//"次"
		FormData fd_lblNXRGLCCSC = new FormData();
		fd_lblNXRGLCCSC.top = new FormAttachment(txtNXRGLCCS, 0, SWT.TOP);
		fd_lblNXRGLCCSC.left = new FormAttachment(txtNXRGLCCS, 2);
		lblNXRGLCCSC.setLayoutData(fd_lblNXRGLCCSC);

		// 家族史
		Section sectFamily = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sectFamily = new FormData();
		fd_sectFamily.right = new FormAttachment(100, -15);
		fd_sectFamily.top = new FormAttachment(sectWoman, 10, SWT.BOTTOM);
		fd_sectFamily.left = new FormAttachment(0, 15);
		sectFamily.setLayoutData(fd_sectFamily);
		toolkit.paintBordersFor(sectFamily);
		sectFamily.setText(Messages.getString("PersonBaseInfoUI.sectFamily"));//"家族史"
		sectFamily.setExpanded(true);

		Composite compFamily = toolkit.createComposite(sectFamily, SWT.NONE);
		toolkit.paintBordersFor(compFamily);
		sectFamily.setClient(compFamily);
		scrolledComposite.setContent(topLevelContainer);
		scrolledComposite.setMinSize(topLevelContainer.computeSize(SWT.DEFAULT, SWT.DEFAULT));
		compFamily.setLayout(new FormLayout());

		Label lblJZSZFM = toolkit.createLabel(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSZFM"), SWT.NONE);//"祖父母:"
		FormData fd_lblJZSZFM = new FormData();
		fd_lblJZSZFM.top = new FormAttachment(12);
		fd_lblJZSZFM.left = new FormAttachment(4, 10);
		lblJZSZFM.setLayoutData(fd_lblJZSZFM);

		chkZFMGXY = toolkit.createButton(compFamily,Messages.getString("PersonBaseInfoUI.lblJZSGXY"), SWT.CHECK);//高血压
		FormData fd_chkZFMGXY = new FormData();
		fd_chkZFMGXY.top = new FormAttachment(lblJZSZFM, -2, SWT.TOP);
		fd_chkZFMGXY.left = new FormAttachment(lblJZSZFM, 10);
		chkZFMGXY.setLayoutData(fd_chkZFMGXY);

		chkZFMTNB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSTNB"), SWT.CHECK);//"糖尿病"
		FormData fd_chkZFMTNB = new FormData();
		fd_chkZFMTNB.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		fd_chkZFMTNB.left = new FormAttachment(chkZFMGXY, 8);
		chkZFMTNB.setLayoutData(fd_chkZFMTNB);

		chkZFMGXB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGXB"), SWT.CHECK);//"冠心病"
		FormData fd_chkZFMGXB = new FormData();
		fd_chkZFMGXB.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		fd_chkZFMGXB.left = new FormAttachment(chkZFMTNB, 8);
		chkZFMGXB.setLayoutData(fd_chkZFMGXB);

		chkZFMEXZL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSEXZL"), SWT.CHECK);//"恶性肿瘤"
		FormData fd_chkZFMEXZL = new FormData();
		fd_chkZFMEXZL.left = new FormAttachment(chkZFMGXB, 8);
		fd_chkZFMEXZL.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		chkZFMEXZL.setLayoutData(fd_chkZFMEXZL);

		chkZFMGMZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGMZ"), SWT.CHECK);//"过敏症"
		FormData fd_chkZFMGMZ = new FormData();
		fd_chkZFMGMZ.left = new FormAttachment(chkZFMEXZL, 8);
		fd_chkZFMGMZ.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		chkZFMGMZ.setLayoutData(fd_chkZFMGMZ);

		chkZFMJSFL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJSFL"), SWT.CHECK);//"精神分裂"
		FormData fd_chkZFMJSFL = new FormData();
		fd_chkZFMJSFL.left = new FormAttachment(chkZFMGMZ, 8);
		fd_chkZFMJSFL.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		chkZFMJSFL.setLayoutData(fd_chkZFMJSFL);

		chkZFMNZZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSNZZ"), SWT.CHECK);//"脑卒中"
		FormData fd_chkZFMNZZ = new FormData();
		fd_chkZFMNZZ.left = new FormAttachment(chkZFMJSFL, 8);
		fd_chkZFMNZZ.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		chkZFMNZZ.setLayoutData(fd_chkZFMNZZ);

		chkZFMJHB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJHB"), SWT.CHECK);//"结核病"
		FormData fd_chkZFMJHB = new FormData();
		fd_chkZFMJHB.left = new FormAttachment(chkZFMNZZ, 8);
		fd_chkZFMJHB.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		chkZFMJHB.setLayoutData(fd_chkZFMJHB);

		chkZFMGY = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGY"), SWT.CHECK);//"肝炎"
		FormData fd_chkZFMGY = new FormData();
		fd_chkZFMGY.left = new FormAttachment(chkZFMJHB, 8);
		fd_chkZFMGY.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		chkZFMGY.setLayoutData(fd_chkZFMGY);

		chkZFMXTJX = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSXTJX"), SWT.CHECK);//"先天畸形"
		FormData fd_chkZFMXTJX = new FormData();
		fd_chkZFMXTJX.left = new FormAttachment(chkZFMGY, 8);
		fd_chkZFMXTJX.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		chkZFMXTJX.setLayoutData(fd_chkZFMXTJX);

		chkZFMQT = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSQT"), SWT.CHECK);//"其他"
		FormData fd_chkZFMQT = new FormData();
		fd_chkZFMQT.left = new FormAttachment(chkZFMXTJX, 8);
		fd_chkZFMQT.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		chkZFMQT.setLayoutData(fd_chkZFMQT);

		txtZFMQT = toolkit.createText(compFamily, "", SWT.NONE);
		FormData fd_txtZFMQT = new FormData();
		fd_txtZFMQT.left = new FormAttachment(chkZFMQT, 4);
		fd_txtZFMQT.top = new FormAttachment(chkZFMGXY, 0, SWT.TOP);
		fd_txtZFMQT.right = new FormAttachment(96, -5);
		txtZFMQT.setLayoutData(fd_txtZFMQT);

		Label lblJZSWZFM = toolkit.createLabel(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSWZWM"), SWT.NONE);//"外祖父母:"
		FormData fd_lblJZSWZFM = new FormData();
		fd_lblJZSWZFM.top = new FormAttachment(lblJZSZFM, row_space, SWT.BOTTOM);
		fd_lblJZSWZFM.right = new FormAttachment(lblJZSZFM, 0, SWT.RIGHT);
		lblJZSWZFM.setLayoutData(fd_lblJZSWZFM);

		chkWZFMGXY = toolkit.createButton(compFamily,Messages.getString("PersonBaseInfoUI.lblJZSGXY"), SWT.CHECK);
		FormData fd_chkWZFMGXY = new FormData();
		fd_chkWZFMGXY.top = new FormAttachment(lblJZSWZFM, -2, SWT.TOP);
		fd_chkWZFMGXY.left = new FormAttachment(lblJZSWZFM, 10);
		chkWZFMGXY.setLayoutData(fd_chkWZFMGXY);

		chkWZFMTNB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSTNB"), SWT.CHECK);
		FormData fd_chkWZFMTNB = new FormData();
		fd_chkWZFMTNB.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		fd_chkWZFMTNB.left = new FormAttachment(chkWZFMGXY, 8);
		chkWZFMTNB.setLayoutData(fd_chkWZFMTNB);

		chkWZFMGXB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGXB"), SWT.CHECK);
		FormData fd_chkWZFMGXB = new FormData();
		fd_chkWZFMGXB.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		fd_chkWZFMGXB.left = new FormAttachment(chkWZFMTNB, 8);
		chkWZFMGXB.setLayoutData(fd_chkWZFMGXB);

		chkWZFMEXZL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSEXZL"), SWT.CHECK);
		FormData fd_chkWZFMEXZL = new FormData();
		fd_chkWZFMEXZL.left = new FormAttachment(chkWZFMGXB, 8);
		fd_chkWZFMEXZL.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		chkWZFMEXZL.setLayoutData(fd_chkWZFMEXZL);

		chkWZFMGMZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGMZ"), SWT.CHECK);
		FormData fd_chkWZFMGMZ = new FormData();
		fd_chkWZFMGMZ.left = new FormAttachment(chkWZFMEXZL, 8);
		fd_chkWZFMGMZ.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		chkWZFMGMZ.setLayoutData(fd_chkWZFMGMZ);

		chkWZFMJSFL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJSFL"), SWT.CHECK);
		FormData fd_chkWZFMJSFL = new FormData();
		fd_chkWZFMJSFL.left = new FormAttachment(chkWZFMGMZ, 8);
		fd_chkWZFMJSFL.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		chkWZFMJSFL.setLayoutData(fd_chkWZFMJSFL);

		chkWZFMNZZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSNZZ"), SWT.CHECK);
		FormData fd_chkWZFMNZZ = new FormData();
		fd_chkWZFMNZZ.left = new FormAttachment(chkWZFMJSFL, 8);
		fd_chkWZFMNZZ.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		chkWZFMNZZ.setLayoutData(fd_chkWZFMNZZ);

		chkWZFMJHB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJHB"), SWT.CHECK);
		FormData fd_chkWZFMJHB = new FormData();
		fd_chkWZFMJHB.left = new FormAttachment(chkWZFMNZZ, 8);
		fd_chkWZFMJHB.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		chkWZFMJHB.setLayoutData(fd_chkWZFMJHB);

		chkWZFMGY = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGY"), SWT.CHECK);
		FormData fd_chkWZFMGY = new FormData();
		fd_chkWZFMGY.left = new FormAttachment(chkWZFMJHB, 8);
		fd_chkWZFMGY.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		chkWZFMGY.setLayoutData(fd_chkWZFMGY);

		chkWZFMXTJX = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSXTJX"), SWT.CHECK);
		FormData fd_chkWZFMXTJX = new FormData();
		fd_chkWZFMXTJX.left = new FormAttachment(chkWZFMGY, 8);
		fd_chkWZFMXTJX.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		chkWZFMXTJX.setLayoutData(fd_chkWZFMXTJX);

		chkWZFMQT = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSQT"), SWT.CHECK);
		FormData fd_chkWZFMQT = new FormData();
		fd_chkWZFMQT.left = new FormAttachment(chkWZFMXTJX, 8);
		fd_chkWZFMQT.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		chkWZFMQT.setLayoutData(fd_chkWZFMQT);

		txtWZFMQT = toolkit.createText(compFamily, "", SWT.NONE);
		FormData fd_txtWZFMQT = new FormData();
		fd_txtWZFMQT.left = new FormAttachment(chkWZFMQT, 4);
		fd_txtWZFMQT.top = new FormAttachment(chkWZFMGXY, 0, SWT.TOP);
		fd_txtWZFMQT.right = new FormAttachment(96, -5);
		txtWZFMQT.setLayoutData(fd_txtWZFMQT);

		Label lblJZSFQ = toolkit.createLabel(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSFQ"), SWT.NONE);//"父亲:"
		FormData fd_lblJZSFQ = new FormData();
		fd_lblJZSFQ.top = new FormAttachment(lblJZSWZFM, row_space, SWT.BOTTOM);
		fd_lblJZSFQ.right = new FormAttachment(lblJZSWZFM, 0, SWT.RIGHT);
		lblJZSFQ.setLayoutData(fd_lblJZSFQ);

		chkFQGXY = toolkit.createButton(compFamily,Messages.getString("PersonBaseInfoUI.lblJZSGXY"), SWT.CHECK);
		FormData fd_chkFQGXY = new FormData();
		fd_chkFQGXY.top = new FormAttachment(lblJZSFQ, -2, SWT.TOP);
		fd_chkFQGXY.left = new FormAttachment(lblJZSFQ, 10);
		chkFQGXY.setLayoutData(fd_chkFQGXY);

		chkFQTNB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSTNB"), SWT.CHECK);
		FormData fd_chkFQTNB = new FormData();
		fd_chkFQTNB.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		fd_chkFQTNB.left = new FormAttachment(chkFQGXY, 8);
		chkFQTNB.setLayoutData(fd_chkFQTNB);

		chkFQGXB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGXB"), SWT.CHECK);
		FormData fd_chkFQGXB = new FormData();
		fd_chkFQGXB.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		fd_chkFQGXB.left = new FormAttachment(chkFQTNB, 8);
		chkFQGXB.setLayoutData(fd_chkFQGXB);

		chkFQEXZL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSEXZL"), SWT.CHECK);
		FormData fd_chkFQEXZL = new FormData();
		fd_chkFQEXZL.left = new FormAttachment(chkFQGXB, 8);
		fd_chkFQEXZL.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		chkFQEXZL.setLayoutData(fd_chkFQEXZL);

		chkFQGMZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGMZ"), SWT.CHECK);
		FormData fd_chkFQGMZ = new FormData();
		fd_chkFQGMZ.left = new FormAttachment(chkFQEXZL, 8);
		fd_chkFQGMZ.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		chkFQGMZ.setLayoutData(fd_chkFQGMZ);

		chkFQJSFL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJSFL"), SWT.CHECK);
		FormData fd_chkFQJSFL = new FormData();
		fd_chkFQJSFL.left = new FormAttachment(chkFQGMZ, 8);
		fd_chkFQJSFL.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		chkFQJSFL.setLayoutData(fd_chkFQJSFL);

		chkFQNZZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSNZZ"), SWT.CHECK);
		FormData fd_chkFQNZZ = new FormData();
		fd_chkFQNZZ.left = new FormAttachment(chkFQJSFL, 8);
		fd_chkFQNZZ.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		chkFQNZZ.setLayoutData(fd_chkFQNZZ);

		chkFQJHB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJHB"), SWT.CHECK);
		FormData fd_chkFQJHB = new FormData();
		fd_chkFQJHB.left = new FormAttachment(chkFQNZZ, 8);
		fd_chkFQJHB.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		chkFQJHB.setLayoutData(fd_chkFQJHB);

		chkFQGY = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGY"), SWT.CHECK);
		FormData fd_chkFQGY = new FormData();
		fd_chkFQGY.left = new FormAttachment(chkFQJHB, 8);
		fd_chkFQGY.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		chkFQGY.setLayoutData(fd_chkFQGY);

		chkFQXTJX = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSXTJX"), SWT.CHECK);
		FormData fd_chkFQXTJX = new FormData();
		fd_chkFQXTJX.left = new FormAttachment(chkFQGY, 8);
		fd_chkFQXTJX.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		chkFQXTJX.setLayoutData(fd_chkFQXTJX);

		chkFQQT = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSQT"), SWT.CHECK);
		FormData fd_chkFQQT = new FormData();
		fd_chkFQQT.left = new FormAttachment(chkFQXTJX, 8);
		fd_chkFQQT.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		chkFQQT.setLayoutData(fd_chkFQQT);

		txtFQQT = toolkit.createText(compFamily, "", SWT.NONE);
		FormData fd_txtFQQT = new FormData();
		fd_txtFQQT.left = new FormAttachment(chkFQQT, 4);
		fd_txtFQQT.top = new FormAttachment(chkFQGXY, 0, SWT.TOP);
		fd_txtFQQT.right = new FormAttachment(96, -5);
		txtFQQT.setLayoutData(fd_txtFQQT);

		Label lblJZSMQ = toolkit.createLabel(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSMQ"), SWT.NONE);//"母亲:"
		FormData fd_lblJZSMQ = new FormData();
		fd_lblJZSMQ.top = new FormAttachment(lblJZSFQ, row_space, SWT.BOTTOM);
		fd_lblJZSMQ.right = new FormAttachment(lblJZSFQ, 0, SWT.RIGHT);
		lblJZSMQ.setLayoutData(fd_lblJZSMQ);

		chkMQGXY = toolkit.createButton(compFamily,Messages.getString("PersonBaseInfoUI.lblJZSGXY"), SWT.CHECK);
		FormData fd_chkMQGXY = new FormData();
		fd_chkMQGXY.top = new FormAttachment(lblJZSMQ, -2, SWT.TOP);
		fd_chkMQGXY.left = new FormAttachment(lblJZSMQ, 10);
		chkMQGXY.setLayoutData(fd_chkMQGXY);

		chkMQTNB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSTNB"), SWT.CHECK);
		FormData fd_chkMQTNB = new FormData();
		fd_chkMQTNB.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		fd_chkMQTNB.left = new FormAttachment(chkMQGXY, 8);
		chkMQTNB.setLayoutData(fd_chkMQTNB);

		chkMQGXB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGXB"), SWT.CHECK);
		FormData fd_chkMQGXB = new FormData();
		fd_chkMQGXB.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		fd_chkMQGXB.left = new FormAttachment(chkMQTNB, 8);
		chkMQGXB.setLayoutData(fd_chkMQGXB);

		chkMQEXZL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSEXZL"), SWT.CHECK);
		FormData fd_chkMQEXZL = new FormData();
		fd_chkMQEXZL.left = new FormAttachment(chkMQGXB, 8);
		fd_chkMQEXZL.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		chkMQEXZL.setLayoutData(fd_chkMQEXZL);

		chkMQGMZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGMZ"), SWT.CHECK);
		FormData fd_chkMQGMZ = new FormData();
		fd_chkMQGMZ.left = new FormAttachment(chkMQEXZL, 8);
		fd_chkMQGMZ.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		chkMQGMZ.setLayoutData(fd_chkMQGMZ);

		chkMQJSFL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJSFL"), SWT.CHECK);
		FormData fd_chkMQJSFL = new FormData();
		fd_chkMQJSFL.left = new FormAttachment(chkMQGMZ, 8);
		fd_chkMQJSFL.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		chkMQJSFL.setLayoutData(fd_chkMQJSFL);

		chkMQNZZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSNZZ"), SWT.CHECK);
		FormData fd_chkMQNZZ = new FormData();
		fd_chkMQNZZ.left = new FormAttachment(chkMQJSFL, 8);
		fd_chkMQNZZ.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		chkMQNZZ.setLayoutData(fd_chkMQNZZ);

		chkMQJHB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJHB"), SWT.CHECK);
		FormData fd_chkMQJHB = new FormData();
		fd_chkMQJHB.left = new FormAttachment(chkMQNZZ, 8);
		fd_chkMQJHB.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		chkMQJHB.setLayoutData(fd_chkMQJHB);

		chkMQGY = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGY"), SWT.CHECK);
		FormData fd_chkMQGY = new FormData();
		fd_chkMQGY.left = new FormAttachment(chkMQJHB, 8);
		fd_chkMQGY.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		chkMQGY.setLayoutData(fd_chkMQGY);

		chkMQXTJX = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSXTJX"), SWT.CHECK);
		FormData fd_chkMQXTJX = new FormData();
		fd_chkMQXTJX.left = new FormAttachment(chkMQGY, 8);
		fd_chkMQXTJX.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		chkMQXTJX.setLayoutData(fd_chkMQXTJX);

		chkMQQT = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSQT"), SWT.CHECK);
		FormData fd_chkMQQT = new FormData();
		fd_chkMQQT.left = new FormAttachment(chkMQXTJX, 8);
		fd_chkMQQT.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		chkMQQT.setLayoutData(fd_chkMQQT);

		txtMQQT = toolkit.createText(compFamily, "", SWT.NONE);
		FormData fd_txtMQQT = new FormData();
		fd_txtMQQT.left = new FormAttachment(chkMQQT, 4);
		fd_txtMQQT.top = new FormAttachment(chkMQGXY, 0, SWT.TOP);
		fd_txtMQQT.right = new FormAttachment(96, -5);
		txtMQQT.setLayoutData(fd_txtMQQT);

		Label lblJZSXDJM = toolkit.createLabel(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSXDJM"), SWT.NONE);//"兄弟姐妹:"
		FormData fd_lblJZSXDJM = new FormData();
		fd_lblJZSXDJM.top = new FormAttachment(lblJZSMQ, row_space, SWT.BOTTOM);
		fd_lblJZSXDJM.right = new FormAttachment(lblJZSMQ, 0, SWT.RIGHT);
		lblJZSXDJM.setLayoutData(fd_lblJZSXDJM);

		chkXDJMGXY = toolkit.createButton(compFamily,Messages.getString("PersonBaseInfoUI.lblJZSGXY"), SWT.CHECK);//高血压
		FormData fd_chkXDJMGXY = new FormData();
		fd_chkXDJMGXY.top = new FormAttachment(lblJZSXDJM, -2, SWT.TOP);
		fd_chkXDJMGXY.left = new FormAttachment(lblJZSXDJM, 10);
		chkXDJMGXY.setLayoutData(fd_chkXDJMGXY);

		chkXDJMTNB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSTNB"), SWT.CHECK);
		FormData fd_chkXDJMTNB = new FormData();
		fd_chkXDJMTNB.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		fd_chkXDJMTNB.left = new FormAttachment(chkXDJMGXY, 8);
		chkXDJMTNB.setLayoutData(fd_chkXDJMTNB);

		chkXDJMGXB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGXB"), SWT.CHECK);
		FormData fd_chkXDJMGXB = new FormData();
		fd_chkXDJMGXB.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		fd_chkXDJMGXB.left = new FormAttachment(chkXDJMTNB, 8);
		chkXDJMGXB.setLayoutData(fd_chkXDJMGXB);

		chkXDJMEXZL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSEXZL"), SWT.CHECK);
		FormData fd_chkXDJMEXZL = new FormData();
		fd_chkXDJMEXZL.left = new FormAttachment(chkXDJMGXB, 8);
		fd_chkXDJMEXZL.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		chkXDJMEXZL.setLayoutData(fd_chkXDJMEXZL);

		chkXDJMGMZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGMZ"), SWT.CHECK);
		FormData fd_chkXDJMGMZ = new FormData();
		fd_chkXDJMGMZ.left = new FormAttachment(chkXDJMEXZL, 8);
		fd_chkXDJMGMZ.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		chkXDJMGMZ.setLayoutData(fd_chkXDJMGMZ);

		chkXDJMJSFL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJSFL"), SWT.CHECK);
		FormData fd_chkXDJMJSFL = new FormData();
		fd_chkXDJMJSFL.left = new FormAttachment(chkXDJMGMZ, 8);
		fd_chkXDJMJSFL.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		chkXDJMJSFL.setLayoutData(fd_chkXDJMJSFL);

		chkXDJMNZZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSNZZ"), SWT.CHECK);
		FormData fd_chkXDJMNZZ = new FormData();
		fd_chkXDJMNZZ.left = new FormAttachment(chkXDJMJSFL, 8);
		fd_chkXDJMNZZ.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		chkXDJMNZZ.setLayoutData(fd_chkXDJMNZZ);

		chkXDJMJHB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJHB"), SWT.CHECK);
		FormData fd_chkXDJMJHB = new FormData();
		fd_chkXDJMJHB.left = new FormAttachment(chkXDJMNZZ, 8);
		fd_chkXDJMJHB.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		chkXDJMJHB.setLayoutData(fd_chkXDJMJHB);

		chkXDJMGY = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGY"), SWT.CHECK);
		FormData fd_chkXDJMGY = new FormData();
		fd_chkXDJMGY.left = new FormAttachment(chkXDJMJHB, 8);
		fd_chkXDJMGY.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		chkXDJMGY.setLayoutData(fd_chkXDJMGY);

		chkXDJMXTJX = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSXTJX"), SWT.CHECK);
		FormData fd_chkXDJMXTJX = new FormData();
		fd_chkXDJMXTJX.left = new FormAttachment(chkXDJMGY, 8);
		fd_chkXDJMXTJX.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		chkXDJMXTJX.setLayoutData(fd_chkXDJMXTJX);

		chkXDJMQT = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSQT"), SWT.CHECK);
		FormData fd_chkXDJMQT = new FormData();
		fd_chkXDJMQT.left = new FormAttachment(chkXDJMXTJX, 8);
		fd_chkXDJMQT.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		chkXDJMQT.setLayoutData(fd_chkXDJMQT);

		txtXDJMQT = toolkit.createText(compFamily, "", SWT.NONE);
		FormData fd_txtXDJMQT = new FormData();
		fd_txtXDJMQT.left = new FormAttachment(chkXDJMQT, 4);
		fd_txtXDJMQT.top = new FormAttachment(chkXDJMGXY, 0, SWT.TOP);
		fd_txtXDJMQT.right = new FormAttachment(96, -5);
		txtXDJMQT.setLayoutData(fd_txtXDJMQT);

		Label lblJZSZN = toolkit.createLabel(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSZN"), SWT.NONE);//"子女:"
		FormData fd_lblJZSZN = new FormData();
		fd_lblJZSZN.top = new FormAttachment(lblJZSXDJM, row_space, SWT.BOTTOM);
		fd_lblJZSZN.right = new FormAttachment(lblJZSXDJM, 0, SWT.RIGHT);
		lblJZSZN.setLayoutData(fd_lblJZSZN);

		chkZNGXY = toolkit.createButton(compFamily,Messages.getString("PersonBaseInfoUI.lblJZSGXY"), SWT.CHECK);
		FormData fd_chkZNGXY = new FormData();
		fd_chkZNGXY.top = new FormAttachment(lblJZSZN, -2, SWT.TOP);
		fd_chkZNGXY.left = new FormAttachment(lblJZSZN, 10);
		chkZNGXY.setLayoutData(fd_chkZNGXY);

		chkZNTNB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSTNB"), SWT.CHECK);
		FormData fd_chkZNTNB = new FormData();
		fd_chkZNTNB.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		fd_chkZNTNB.left = new FormAttachment(chkZNGXY, 8);
		chkZNTNB.setLayoutData(fd_chkZNTNB);

		chkZNGXB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGXB"), SWT.CHECK);
		FormData fd_chkZNGXB = new FormData();
		fd_chkZNGXB.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		fd_chkZNGXB.left = new FormAttachment(chkZNTNB, 8);
		chkZNGXB.setLayoutData(fd_chkZNGXB);

		chkZNEXZL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSEXZL"), SWT.CHECK);
		FormData fd_chkZNEXZL = new FormData();
		fd_chkZNEXZL.left = new FormAttachment(chkZNGXB, 8);
		fd_chkZNEXZL.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		chkZNEXZL.setLayoutData(fd_chkZNEXZL);

		chkZNGMZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGMZ"), SWT.CHECK);
		FormData fd_chkZNGMZ = new FormData();
		fd_chkZNGMZ.left = new FormAttachment(chkZNEXZL, 8);
		fd_chkZNGMZ.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		chkZNGMZ.setLayoutData(fd_chkZNGMZ);

		chkZNJSFL = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJSFL"), SWT.CHECK);
		FormData fd_chkZNJSFL = new FormData();
		fd_chkZNJSFL.left = new FormAttachment(chkZNGMZ, 8);
		fd_chkZNJSFL.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		chkZNJSFL.setLayoutData(fd_chkZNJSFL);

		chkZNNZZ = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSNZZ"), SWT.CHECK);
		FormData fd_chkZNNZZ = new FormData();
		fd_chkZNNZZ.left = new FormAttachment(chkZNJSFL, 8);
		fd_chkZNNZZ.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		chkZNNZZ.setLayoutData(fd_chkZNNZZ);

		chkZNJHB = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSJHB"), SWT.CHECK);
		FormData fd_chkZNJHB = new FormData();
		fd_chkZNJHB.left = new FormAttachment(chkZNNZZ, 8);
		fd_chkZNJHB.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		chkZNJHB.setLayoutData(fd_chkZNJHB);

		chkZNGY = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSGY"), SWT.CHECK);
		FormData fd_chkZNGY = new FormData();
		fd_chkZNGY.left = new FormAttachment(chkZNJHB, 8);
		fd_chkZNGY.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		chkZNGY.setLayoutData(fd_chkZNGY);

		chkZNXTJX = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSXTJX"), SWT.CHECK);
		FormData fd_chkZNXTJX = new FormData();
		fd_chkZNXTJX.left = new FormAttachment(chkZNGY, 8);
		fd_chkZNXTJX.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		chkZNXTJX.setLayoutData(fd_chkZNXTJX);

		chkZNQT = toolkit.createButton(compFamily, Messages.getString("PersonBaseInfoUI.lblJZSQT"), SWT.CHECK);
		FormData fd_chkZNQT = new FormData();
		fd_chkZNQT.left = new FormAttachment(chkZNXTJX, 8);
		fd_chkZNQT.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		chkZNQT.setLayoutData(fd_chkZNQT);

		txtZNQT = toolkit.createText(compFamily, "", SWT.NONE);
		FormData fd_txtZNQT = new FormData();
		fd_txtZNQT.left = new FormAttachment(chkZNQT, 4);
		fd_txtZNQT.top = new FormAttachment(chkZNGXY, 0, SWT.TOP);
		fd_txtZNQT.right = new FormAttachment(96, -5);
		txtZNQT.setLayoutData(fd_txtZNQT);

		Section sectOthers = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sectOthers = new FormData();
		fd_sectOthers.right = new FormAttachment(100, -15);
		fd_sectOthers.top = new FormAttachment(sectFamily, 10, SWT.BOTTOM);
		fd_sectOthers.left = new FormAttachment(0, 15);

		// 其他项
		sectOthers.setLayoutData(fd_sectOthers);
		toolkit.paintBordersFor(sectOthers);
		sectOthers.setText(Messages.getString("PersonBaseInfoUI.sectOthers"));//"其他"
		sectOthers.setExpanded(true);

		Composite compOthers = toolkit.createComposite(sectOthers, SWT.NONE);
		toolkit.paintBordersFor(compOthers);
		sectOthers.setClient(compOthers);
		compOthers.setLayout(new FormLayout());

		Label lblYCBS = toolkit.createLabel(compOthers, Messages.getString("PersonBaseInfoUI.lblYCBS"), SWT.NONE);//"遗传病史"
		lblYCBS.setFont(RcpResourceManager.getFont("宋体", 9, SWT.BOLD));
		{
			FormData fd_lblYCBS = new FormData();
			fd_lblYCBS.top = new FormAttachment(0, 12);
			fd_lblYCBS.left = new FormAttachment(4, 10);
			lblYCBS.setLayoutData(fd_lblYCBS);
		}
		Label lblYCBSYW = toolkit.createLabel(compOthers, Messages.getString("PersonBaseInfoUI.lblYCBSYW"), SWT.NONE);//"有/无："
		FormData fd_lblYCBSYW = new FormData();
		fd_lblYCBSYW.top = new FormAttachment(lblYCBS, 0, SWT.TOP);
		fd_lblYCBSYW.left = new FormAttachment(lblYCBS, 10);
		lblYCBSYW.setLayoutData(fd_lblYCBSYW);

		cmbYCBSYW = new Combo(compOthers, SWT.READ_ONLY);
		// cmbYCBSYW.setItems(new String[] { "无", "有" });
		FormData fd_cmbYCBSYW = new FormData();
		fd_cmbYCBSYW.top = new FormAttachment(lblYCBSYW, -4, SWT.TOP);
		fd_cmbYCBSYW.bottom = new FormAttachment(lblYCBSYW, 4, SWT.BOTTOM);
		fd_cmbYCBSYW.left = new FormAttachment(lblYCBSYW, 6);
		cmbYCBSYW.setLayoutData(fd_cmbYCBSYW);
		toolkit.adapt(cmbYCBSYW, true, true);

		Label lblJBMC = toolkit.createLabel(compOthers, Messages.getString("PersonBaseInfoUI.lblJBMC"), SWT.NONE);//"疾病名称："
		FormData fd_lblJBMC = new FormData();
		fd_lblJBMC.top = new FormAttachment(lblYCBSYW, 0, SWT.TOP);
		fd_lblJBMC.left = new FormAttachment(cmbYCBSYW, 8);
		lblJBMC.setLayoutData(fd_lblJBMC);

		txtJBMC = toolkit.createText(compOthers, "", SWT.NONE);
		FormData fd_txtJBMC = new FormData();
		fd_txtJBMC.top = new FormAttachment(lblJBMC, 0, SWT.TOP);
		fd_txtJBMC.left = new FormAttachment(lblJBMC, 6);
		fd_txtJBMC.right = new FormAttachment(96, -5);
		txtJBMC.setLayoutData(fd_txtJBMC);

		Label lblCJ = toolkit.createLabel(compOthers, Messages.getString("PersonBaseInfoUI.lblCJ"), SWT.NONE);//"有无残疾"
		lblCJ.setFont(RcpResourceManager.getFont("宋体", 9, SWT.BOLD));
		{
			FormData fd_lblCJ = new FormData();
			fd_lblCJ.top = new FormAttachment(lblYCBS, row_space);
			fd_lblCJ.right = new FormAttachment(lblYCBS, 0, SWT.RIGHT);
			lblCJ.setLayoutData(fd_lblCJ);
		}

		chkWCJ = toolkit.createButton(compOthers, Messages.getString("PersonBaseInfoUI.chkWCJ"), SWT.CHECK);//"无残疾"
		FormData fd_chkWCJ = new FormData();
		fd_chkWCJ.top = new FormAttachment(lblCJ, 0, SWT.TOP);
		fd_chkWCJ.left = new FormAttachment(lblCJ, 10);
		chkWCJ.setLayoutData(fd_chkWCJ);

		chkTLCJ = toolkit.createButton(compOthers, Messages.getString("PersonBaseInfoUI.chkTLCJ"), SWT.CHECK);//"听力残疾"
		FormData fd_chkTLCJ = new FormData();
		fd_chkTLCJ.top = new FormAttachment(chkWCJ, 0, SWT.TOP);
		fd_chkTLCJ.left = new FormAttachment(chkWCJ, 10);
		chkTLCJ.setLayoutData(fd_chkTLCJ);

		chkYYCJ = toolkit.createButton(compOthers, Messages.getString("PersonBaseInfoUI.chkYYCJ"), SWT.CHECK);//"言语残疾"
		FormData fd_chkYYCJ = new FormData();
		fd_chkYYCJ.top = new FormAttachment(chkTLCJ, 0, SWT.TOP);
		fd_chkYYCJ.left = new FormAttachment(chkTLCJ, 8);
		chkYYCJ.setLayoutData(fd_chkYYCJ);

		chkZTCJ = toolkit.createButton(compOthers, Messages.getString("PersonBaseInfoUI.chkZTCJ"), SWT.CHECK);//"肢体残疾"
		FormData fd_chkZTCJ = new FormData();
		fd_chkZTCJ.top = new FormAttachment(chkYYCJ, 0, SWT.TOP);
		fd_chkZTCJ.left = new FormAttachment(chkYYCJ, 8);
		chkZTCJ.setLayoutData(fd_chkZTCJ);

		chkZLCJ = toolkit.createButton(compOthers, Messages.getString("PersonBaseInfoUI.chkZLCJ"), SWT.CHECK);//"智力残疾"
		FormData fd_chkZLCJ = new FormData();
		fd_chkZLCJ.left = new FormAttachment(chkZTCJ, 8);
		fd_chkZLCJ.top = new FormAttachment(chkZTCJ, 0, SWT.TOP);
		chkZLCJ.setLayoutData(fd_chkZLCJ);

		chkJSCJ = toolkit.createButton(compOthers, Messages.getString("PersonBaseInfoUI.chkJSCJ"), SWT.CHECK);//"精神残疾"
		FormData fd_chkJSCJ = new FormData();
		fd_chkJSCJ.left = new FormAttachment(chkZLCJ, 8);
		fd_chkJSCJ.top = new FormAttachment(chkZLCJ, 0, SWT.TOP);
		chkJSCJ.setLayoutData(fd_chkJSCJ);

		chkQTCJ = toolkit.createButton(compOthers, Messages.getString("PersonBaseInfoUI.chkQTCJ"), SWT.CHECK);//"其他残疾"
		FormData fd_chkQTCJ = new FormData();
		fd_chkQTCJ.left = new FormAttachment(chkJSCJ, 8);
		fd_chkQTCJ.top = new FormAttachment(chkJSCJ, 0, SWT.TOP);
		chkQTCJ.setLayoutData(fd_chkQTCJ);

		txtQTCJ = toolkit.createText(compOthers, "", SWT.NONE);
		FormData fd_txtQTCJ = new FormData();
		fd_txtQTCJ.left = new FormAttachment(chkQTCJ, 4);
		fd_txtQTCJ.top = new FormAttachment(chkQTCJ, 0, SWT.TOP);
		fd_txtQTCJ.right = new FormAttachment(96, -5);
		txtQTCJ.setLayoutData(fd_txtQTCJ);

		Label lblCJZBH = toolkit.createLabel(compOthers, Messages.getString("PersonBaseInfoUI.lblCJZBH"), SWT.NONE);//"残疾证编号："
		FormData fd_lblCJZBH = new FormData();
		fd_lblCJZBH.top = new FormAttachment(chkTLCJ, row_space);
		fd_lblCJZBH.left = new FormAttachment(chkTLCJ, 0, SWT.LEFT);
		lblCJZBH.setLayoutData(fd_lblCJZBH);

		txtCJZBH = toolkit.createText(compOthers, "", SWT.NONE);
		FormData fd_txtCJZBH = new FormData();
		fd_txtCJZBH.top = new FormAttachment(lblCJZBH, 0, SWT.TOP);
		fd_txtCJZBH.left = new FormAttachment(lblCJZBH, 6);
		fd_txtCJZBH.bottom = new FormAttachment(100, -4);
		fd_txtCJZBH.right = new FormAttachment(chkQTCJ, 0, SWT.RIGHT);
		txtCJZBH.setLayoutData(fd_txtCJZBH);

		Section sectRecord = toolkit.createSection(scrldfrmNewScrolledform.getBody(), Section.TWISTIE | Section.TITLE_BAR);
		FormData fd_sectRecord = new FormData();
		fd_sectRecord.right = new FormAttachment(100, -15);
		fd_sectRecord.top = new FormAttachment(sectOthers, 10, SWT.BOTTOM);
		fd_sectRecord.left = new FormAttachment(0, 15);
		sectRecord.setLayoutData(fd_sectRecord);

		toolkit.paintBordersFor(sectRecord);
		sectRecord.setText(Messages.getString("PersonBaseInfoUI.sectRecord"));//"操作信息"
		sectRecord.setExpanded(true);

		Composite compRecord = toolkit.createComposite(sectRecord, SWT.NONE);
		toolkit.paintBordersFor(compRecord);
		sectRecord.setClient(compRecord);
		compRecord.setLayout(new FormLayout());

		Label lblJLRQ = toolkit.createLabel(compRecord, "记录日期：", SWT.NONE);//"记录日期："
		FormData fd_lblJLRQ = new FormData();
		fd_lblJLRQ.top = new FormAttachment(20);
		fd_lblJLRQ.left = new FormAttachment(4, 10);
		lblJLRQ.setLayoutData(fd_lblJLRQ);

		dtJLRQ = new DateTime(compRecord, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
		FormData fd_dtJLRQ = new FormData();
		fd_dtJLRQ.left = new FormAttachment(lblJLRQ, 6);
		fd_dtJLRQ.top = new FormAttachment(lblJLRQ, -4, SWT.TOP);
		fd_dtJLRQ.bottom = new FormAttachment(100, -40);
		dtJLRQ.setLayoutData(fd_dtJLRQ);
		toolkit.adapt(dtJLRQ);
		toolkit.paintBordersFor(dtJLRQ);

		Label lblZRYS = toolkit.createLabel(compRecord, Messages.getString("PersonBaseInfoUI.lblZRYS"), SWT.NONE);//"责任医生："
		FormData fd_lblZRYS = new FormData();
		fd_lblZRYS.top = new FormAttachment(lblJLRQ, 0, SWT.TOP);
		fd_lblZRYS.left = new FormAttachment(dtJLRQ, 10);
		lblZRYS.setLayoutData(fd_lblZRYS);

		cmbZRYS = new Combo(compRecord, SWT.READ_ONLY);
		FormData fd_cmbZRYS = new FormData();
		fd_cmbZRYS.left = new FormAttachment(lblZRYS, 6);
		fd_cmbZRYS.top = new FormAttachment(dtJLRQ, 0, SWT.TOP);
		cmbZRYS.setLayoutData(fd_cmbZRYS);
		toolkit.adapt(cmbZRYS);
		toolkit.paintBordersFor(cmbZRYS);

		scrolledComposite.setContent(topLevelContainer);
		scrolledComposite.setMinSize(topLevelContainer.computeSize(SWT.DEFAULT, SWT.DEFAULT));
	}

	protected void doExport() {

	}

	protected void doExit() {
		getViewSite().getPage().hideView(this);
	}

	protected void addlistener() {

		txtIdno.addModifyListener(new ModifyListener() {
			
			@Override
			public void modifyText(ModifyEvent e) {
				String idNo = txtIdno.getText();
				CommonUtils.initValueByIdCard(idNo, cmbSex, dtBirthday);
			}
		});

		
	}

	public void fillTable() {

	}

	protected abstract void doCancel();

	protected abstract void doSave();

	protected abstract void doDel();

	protected abstract void doEdit();

	protected abstract void doAdd();

	protected void initCombo() {
		this.initDsGeography();
	}

	protected abstract void doPrint();

	/**
	 * Create the actions.
	 */
	private void createActions() {
		// Create the actions
	}

	/**
	 * Initialize the toolbar.
	 */
	private void initializeToolBar() {
		@SuppressWarnings("unused")
		IToolBarManager toolbarManager = getViewSite().getActionBars().getToolBarManager();
	}

	/**
	 * Initialize the menu.
	 */
	private void initializeMenu() {
		@SuppressWarnings("unused")
		IMenuManager menuManager = getViewSite().getActionBars().getMenuManager();
	}

	protected void setActionControl() {
		if(viewstate == PersonBaseInfoViewState.ADD_VIEW || viewstate == PersonBaseInfoViewState.EDIT_VIEW) {
			toolItemAdd.setEnabled(false);// 新增
			toolItemEdit.setEnabled(false);// 编辑
			toolItemDel.setEnabled(false);// 删除
			toolItemCancel.setEnabled(true);// 取消
			toolItemSave.setEnabled(true);// 保存

		} else if(viewstate == PersonBaseInfoViewState.SHOW_VIEW) {
			toolItemAdd.setEnabled(true);//
			toolItemEdit.setEnabled(true);//
			toolItemDel.setEnabled(true);//
			toolItemCancel.setEnabled(false);//
			toolItemSave.setEnabled(false);//

		}

	}

	/**
	 * 个人基本信息
	 * 
	 * @param parent
	 * @author Alex Apr 25, 2011 4:05:53 PM create
	 */
	protected void createPersonBaseInfoUI(Composite parent) {
		baseContainer = parent;
		{

			ScrolledComposite scrolledComposite = new ScrolledComposite(parent, SWT.BORDER | SWT.H_SCROLL | SWT.V_SCROLL);
			toolkit.adapt(scrolledComposite);
			toolkit.paintBordersFor(scrolledComposite);
			scrolledComposite.setExpandHorizontal(true);
			scrolledComposite.setExpandVertical(true);

						
			//Composite m = toolkit.createComposite(scrolledComposite, SWT.NONE);
			Composite m = toolkit.createComposite(scrolledComposite, SWT.NONE);
			toolkit.paintBordersFor(m);
			{
				TableWrapLayout twl_container = new TableWrapLayout();
				twl_container.topMargin = 10;
				m.setLayout(twl_container);
//				
//				FormData fd_sctnAllergy = new FormData();
//				fd_sctnAllergy.right = new FormAttachment(100, -15);
//				fd_sctnAllergy.top = new FormAttachment(0, 10);
//				fd_sctnAllergy.left = new FormAttachment(0, 15);
//				fd_sctnAllergy.left = new FormAttachment(100, -15);
//				m.setLayoutData(fd_sctnAllergy);
				
			}
			Section base = toolkit.createSection(m, Section.TWISTIE | Section.TITLE_BAR);
			TableWrapData twd_base = new TableWrapData(TableWrapData.FILL, TableWrapData.TOP, 1, 1);
			twd_base.indent = 10;
			base.setLayoutData(twd_base);
			base.setExpanded(true);
			base.setText(Messages.getString("PersonBaseInfoUI.secBaseInfo"));// 基本信息

			Composite container = toolkit.createComposite(base, SWT.NONE);
			toolkit.paintBordersFor(container);
			{
				TableWrapLayout twl_container = new TableWrapLayout();
				twl_container.verticalSpacing = 12;
				twl_container.numColumns = 5;
				twl_container.horizontalSpacing = 8;
				twl_container.topMargin = 10;
				container.setLayout(twl_container);
			}

			{// 档案编号
				Label lblNewLabel = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblArchiveSerial"), SWT.NONE);
				lblNewLabel.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}

			{
				Composite composite = toolkit.createComposite(container, SWT.NONE);
				{
					TableWrapLayout twl_composite = new TableWrapLayout();
					twl_composite.numColumns = 2;
					composite.setLayout(twl_composite);
				}
				composite.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL_GRAB, 1, 1));
				toolkit.paintBordersFor(composite);

				txtArchiveSerial = toolkit.createText(composite, "", SWT.NONE);
				txtArchiveSerial.setFont(RcpResourceManager.getFont("宋体", 9, SWT.NORMAL));
				{
					Integer[] type = { ValidateEnum.EMPTY.getType() };
					validateUtil.createTextValidateField(txtArchiveSerial, new CommonFieldValidate(type, "档案编号不能为空！"));
				}

				{
					Button button = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.btnArchiveSerial"), SWT.NONE);
					button.setFont(RcpResourceManager.getFont("宋体", 9, SWT.NORMAL));
					TableWrapData twd_button = new TableWrapData(TableWrapData.FILL, TableWrapData.MIDDLE, 1, 1);
					twd_button.heightHint = 20;
					button.setLayoutData(twd_button);
					button.addSelectionListener(new SelectionAdapter() {

						public void widgetSelected(SelectionEvent e) {
							// choosePerson();
						}
					});
				}
				txtArchiveSerial.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.MIDDLE, 1, 1));

//				txtArchiveSerial.addKeyListener(new KeyListener() {
//
//					public void keyReleased(KeyEvent e) {
//						if(e.keyCode == SWT.CR) {
//							baseContainer.getTabList();
//						}
//
//					}
//
//					public void keyPressed(KeyEvent e) {
//						// TODO Auto-generated method stub
//
//					}
//				});
			}

			// 居委会
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblCommittee"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				// Combo combo = new Combo(opContainer, SWT.NONE);
				cmbCommittee = new GeographyTreeCombo(container, treeObj, SWT.READ_ONLY | SWT.SIMPLE);
				cmbCommittee.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.MIDDLE, 1, 2));
				toolkit.adapt(cmbCommittee);
				toolkit.paintBordersFor(cmbCommittee);
			}
//			{
//				Integer[] type = { ValidateEnum.EMPTY.getType() };
//				validateUtil.createComboField(cmbCommittee, new CommonFieldValidate(type, "请选择居委会！"));
//			}
			// 姓名
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblName"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
				
			}
			{
				Composite composite = toolkit.createComposite(container, SWT.NONE);
				{
					TableWrapLayout twl_composite = new TableWrapLayout();
					twl_composite.numColumns = 2;
					composite.setLayout(twl_composite);
				}
				composite.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL_GRAB, 1, 1));
				toolkit.paintBordersFor(composite);

				txtName = toolkit.createText(composite, "", SWT.NONE);
				{
					Integer[] type = { ValidateEnum.EMPTY.getType() };
					validateUtil.createTextValidateField(txtName, new CommonFieldValidate(type, "姓名不能为空！"));
				}

				{
					btnChoosePerson = toolkit.createButton(composite, Messages.getString("PersonBaseInfoUI.btnName"), SWT.NONE);
					TableWrapData twd_btnChoosePerson = new TableWrapData(TableWrapData.FILL, TableWrapData.MIDDLE, 1, 1);
					twd_btnChoosePerson.heightHint = 20;
					btnChoosePerson.setLayoutData(twd_btnChoosePerson);
					btnChoosePerson.addSelectionListener(new SelectionAdapter() {

						public void widgetSelected(SelectionEvent e) {
							// HrPersonSelectDlg dlg = new
							// HrPersonSelectDlg(Display.getCurrent().getActiveShell(),
							// txtName.getText());
							// dlg.open();
							choosePerson();
						}
					});
				}
				txtName.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.MIDDLE, 1, 1));

				txtName.addKeyListener(new KeyListener() {

					public void keyReleased(KeyEvent e) {
						if(e.keyCode == SWT.CR) {
							// MessageDialog.openInformation(null, "",
							// "捕获到回车键，应该弹出窗口！");
						}

					}

					public void keyPressed(KeyEvent e) {
						// TODO Auto-generated method stub

					}
				});
			}

			// 身份证号
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblIdno"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				txtIdno = toolkit.createText(container, "", SWT.NONE);
				TableWrapData twd_txtIdno = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL, 1, 2);
				twd_txtIdno.valign = TableWrapData.MIDDLE;
				txtIdno.setLayoutData(twd_txtIdno);
			}
             

			
			
			
			// 性别
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblSex"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				cmbSex = new Combo(container, SWT.READ_ONLY | SWT.NONE);
				cmbSex.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.MIDDLE, 1, 1));
				toolkit.adapt(cmbSex);
				toolkit.paintBordersFor(cmbSex);
				cmbSex.select(0);
			}

			{
				Integer[] type = {ValidateEnum.EMPTY.getType()};
				validateUtil.createComboField(cmbSex, new CommonFieldValidate(type,"请选择性别！"));         
			}
			


			// 出生日期
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblBirthday"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				dtBirthday = new DateTime(container, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
				TableWrapData twd_dtBirthday = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL, 1, 2);
				twd_dtBirthday.valign = TableWrapData.MIDDLE;
				dtBirthday.setLayoutData(twd_dtBirthday);
				toolkit.adapt(dtBirthday);
				toolkit.paintBordersFor(dtBirthday);
			}
            
			{
				Integer[] type = {ValidateEnum.EMPTY.getType(),ValidateEnum.IDCARD_1.getType()};
				validateUtil.createTextValidateField(txtIdno, new CommonFieldValidate(type,"请输入身份证号！&身份证号无效！"));         
			}
			
			
			// 联系电话
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblMobile"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				txtMobile = toolkit.createText(container, "", SWT.NONE);
				txtMobile.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.MIDDLE, 1, 1));
			}

			// 民族
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblNationality"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				cmbNationality = new Combo(container, SWT.READ_ONLY);
				cmbNationality.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL, 1, 1));
				toolkit.adapt(cmbNationality);
				toolkit.paintBordersFor(cmbNationality);
				cmbNationality.select(0);
			}
			{
				txtNationalityOther = toolkit.createText(container, "", SWT.NONE);
				TableWrapData twd_txtNationalityOther = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL, 1, 1);
				twd_txtNationalityOther.valign = TableWrapData.MIDDLE;
				txtNationalityOther.setLayoutData(twd_txtNationalityOther);
			}

			// 血型
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblBloodType"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				cmbBloodType = new Combo(container, SWT.READ_ONLY);
				cmbBloodType.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.MIDDLE, 1, 1));
				toolkit.adapt(cmbBloodType);
				toolkit.paintBordersFor(cmbBloodType);
				cmbBloodType.select(0);
			}

			// 文化程度
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblEducate"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				cmbEducate = new Combo(container, SWT.READ_ONLY);
				TableWrapData twd_cmbEducate = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL, 1, 2);
				twd_cmbEducate.valign = TableWrapData.MIDDLE;
				cmbEducate.setLayoutData(twd_cmbEducate);
				toolkit.adapt(cmbEducate);
				toolkit.paintBordersFor(cmbEducate);
				cmbEducate.select(5);
			}

			// 婚姻
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblMarried"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				cmbMarried = new Combo(container, SWT.READ_ONLY);
				TableWrapData twd_cmbMarried = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP, 1, 1);
				twd_cmbMarried.valign = TableWrapData.MIDDLE;
				cmbMarried.setLayoutData(twd_cmbMarried);
				toolkit.adapt(cmbMarried);
				toolkit.paintBordersFor(cmbMarried);
				cmbMarried.select(0);
			}

			// 医疗费用支付方式
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblPayTypeId"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				cmbPayTypeId = new Combo(container, SWT.READ_ONLY);
				cmbPayTypeId.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL, 1, 2));
				toolkit.adapt(cmbPayTypeId);
				toolkit.paintBordersFor(cmbPayTypeId);
				cmbPayTypeId.select(0);
			}

			// 职业
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblOccupation"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				cmbOccupation = new Combo(container, SWT.READ_ONLY);
				cmbOccupation.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL, 1, 1));
				toolkit.adapt(cmbOccupation);
				toolkit.paintBordersFor(cmbOccupation);
				cmbOccupation.select(0);
			}
			{
				txtOccupationOther = toolkit.createText(container, "", SWT.NONE);
				txtOccupationOther.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.MIDDLE, 1, 3));
			}

			// 紧急联系人、紧急联系电话
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblJJLXR"), SWT.NONE);//"紧急联系人"
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				txtJJLXR = toolkit.createText(container, "", SWT.NONE);
				TableWrapData twd_txtJJLXR = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP, 1, 1);
				twd_txtJJLXR.valign = TableWrapData.MIDDLE;
				txtJJLXR.setLayoutData(twd_txtJJLXR);

			}

			// 医疗费用支付方式
			{
				Label label = toolkit.createLabel(container, Messages.getString("PersonBaseInfoUI.lblJJLXDL"), SWT.NONE);//"紧急联系电话"
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				txtJJLXDL = toolkit.createText(container, "", SWT.NONE);
				TableWrapData twd_txtJJLXDL = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP, 1, 2);
				twd_txtJJLXDL.valign = TableWrapData.MIDDLE;
				txtJJLXDL.setLayoutData(twd_txtJJLXDL);
			}
			base.setClient(container);

			Section opSec = toolkit.createSection(m, Section.TWISTIE | Section.TITLE_BAR);
			TableWrapData twd_opSec = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP, 1, 1);
			twd_opSec.indent = 10;
			opSec.setLayoutData(twd_opSec);
			opSec.setExpanded(true);
			opSec.setText(Messages.getString("PersonBaseInfoUI.secArchiveInfo"));// 建档信息

			Composite opContainer = toolkit.createComposite(opSec, SWT.NONE);
			toolkit.paintBordersFor(container);
			{
				TableWrapLayout twl_container = new TableWrapLayout();
				twl_container.makeColumnsEqualWidth = true;
				twl_container.verticalSpacing = 12;
				twl_container.numColumns = 5;
				twl_container.horizontalSpacing = 10;
				twl_container.topMargin = 10;
				opContainer.setLayout(twl_container);
			}
			opSec.setClient(opContainer);

			// 建档人
			{
				Label label = toolkit.createLabel(opContainer, Messages.getString("PersonBaseInfoUI.lblArchiveUserId"), SWT.NONE);
				//twd.TOP = 12;
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				cmbArchiveUserId = new Combo(opContainer, SWT.READ_ONLY);
				cmbArchiveUserId.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.MIDDLE, 1, 1));
				toolkit.adapt(cmbArchiveUserId);
				toolkit.paintBordersFor(cmbArchiveUserId);
			}

			// 建档日期
			{
				Label label = toolkit.createLabel(opContainer, Messages.getString("PersonBaseInfoUI.lblArchiveDate"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				dtArchiveDate = new DateTime(opContainer, SWT.BORDER | SWT.DROP_DOWN | SWT.LONG);
				dtArchiveDate.setLayoutData(new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL, 1, 2));
				toolkit.adapt(dtArchiveDate);
				toolkit.paintBordersFor(dtArchiveDate);
			}

			// 责任医生
			{
				Label label = toolkit.createLabel(opContainer, Messages.getString("PersonBaseInfoUI.lblAdminUserId"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				cmbAdminUserId = new Combo(opContainer, SWT.READ_ONLY);
				// cmbAdminUserId = new GeographyTreeCombo(opContainer, treeObj,
				// SWT.READ_ONLY
				// | SWT.SIMPLE);

				TableWrapData twd_cmbAdminUserId = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.TOP, 1, 1);
				twd_cmbAdminUserId.valign = TableWrapData.MIDDLE;
				// combo.setLayoutData(twd_combo);
				// toolkit.adapt(combo);
				// toolkit.paintBordersFor(combo);
				cmbAdminUserId.setLayoutData(twd_cmbAdminUserId);
				toolkit.adapt(cmbAdminUserId);
				toolkit.paintBordersFor(cmbAdminUserId);
			}

			// 建档单位
			{
				Label label = toolkit.createLabel(opContainer, Messages.getString("PersonBaseInfoUI.lblArchiveOrgId"), SWT.NONE);
				label.setLayoutData(new TableWrapData(TableWrapData.RIGHT, TableWrapData.MIDDLE, 1, 1));
			}
			{
				cmbArchiveOrgId = new Combo(opContainer, SWT.READ_ONLY);
				TableWrapData twd_cmbArchiveOrgId = new TableWrapData(TableWrapData.FILL_GRAB, TableWrapData.FILL, 1, 2);
				twd_cmbArchiveOrgId.valign = TableWrapData.MIDDLE;
				cmbArchiveOrgId.setLayoutData(twd_cmbArchiveOrgId);
				toolkit.adapt(cmbArchiveOrgId);
				toolkit.paintBordersFor(cmbArchiveOrgId);
			}

			scrolledComposite.setContent(m);
			scrolledComposite.setMinSize(m.computeSize(SWT.DEFAULT, SWT.DEFAULT));
			initDsGeography();

		}
	}

	protected void switchView(PersonBaseInfoViewState state) {
	}

	protected void switchControlsState(Composite container, boolean enabled) {
		Control[] ctls = btnChoosePerson.getParent().getChildren();
		for(Control c : ctls) {
			c.setEnabled(enabled);
		}
		btnChoosePerson.setEnabled(true);
		// Control c =btnChoosePerson;
		// while(c.getParent()!=null){
		// c = c.getParent();
		// c.setEnabled(true);
		// }
		// btnChoosePerson.getParent().setEnabled(true);
	}

	public abstract void choosePerson();

	private void initDsGeography() {
		List<Geography> list = treeObj.getList();
		if(list != null && list.size() > 0) {
			cmbCommittee.setSelection(list.get(0));
		}
	}
}
